Package org.spincast.quickstart.exchange
Interface AppWebsocketContext
- All Superinterfaces:
WebsocketContext<AppWebsocketContext>
- All Known Implementing Classes:
AppWebsocketContextDefault
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
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.
-