Interface AppWebsocketContext

All Superinterfaces:
org.spincast.core.websocket.WebsocketContext<AppWebsocketContext>
All Known Implementing Classes:
AppWebsocketContextDefault

public interface AppWebsocketContext extends org.spincast.core.websocket.WebsocketContext<AppWebsocketContext>
Custom type which allows our application to extend the default Websocket Context. Spincast will pass an instance of this class to all Websocket events handlers, when a new event occures.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    A custom method example.

    Methods inherited from interface org.spincast.core.websocket.WebsocketContext

    closeConnectionWithCurrentPeer, get, get, getEndpointId, getLocaleToUse, getPeerId, getTimeZoneToUse, guice, json, sendMessageToCurrentPeer, sendMessageToCurrentPeer, templating, xml
  • Method Details

    • helloCurrentPeer

      void helloCurrentPeer()
      A custom method example. This will simply send a "Hello!" message to the current peer.