Package org.spincast.quickstart.exchange
Class AppWebsocketContextDefault
java.lang.Object
org.spincast.core.websocket.WebsocketContextBase<AppWebsocketContext>
org.spincast.quickstart.exchange.AppWebsocketContextDefault
- All Implemented Interfaces:
WebsocketContext<AppWebsocketContext>
,AppWebsocketContext
public class AppWebsocketContextDefault
extends WebsocketContextBase<AppWebsocketContext>
implements AppWebsocketContext
Implementation of our custom Websocket Context type.
-
Field Summary
Fields inherited from class org.spincast.core.websocket.WebsocketContextBase
logger
-
Constructor Summary
ConstructorDescriptionAppWebsocketContextDefault
(String endpointId, String peerId, WebsocketPeerManager peerManager, WebsocketContextBaseDeps<AppWebsocketContext> deps) -
Method Summary
Methods inherited from class org.spincast.core.websocket.WebsocketContextBase
closeConnectionWithCurrentPeer, get, get, getEndpointId, getInstanceFromGuiceCache, getLocaleResolver, getLocaleToUse, getPeerId, getTimeZoneResolver, getTimeZoneToUse, guice, json, peerManager, sendMessageToCurrentPeer, sendMessageToCurrentPeer, templating, xml
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spincast.core.websocket.WebsocketContext
closeConnectionWithCurrentPeer, get, get, getEndpointId, getLocaleToUse, getPeerId, getTimeZoneToUse, guice, json, sendMessageToCurrentPeer, sendMessageToCurrentPeer, templating, xml
-
Constructor Details
-
AppWebsocketContextDefault
public AppWebsocketContextDefault(String endpointId, String peerId, WebsocketPeerManager peerManager, WebsocketContextBaseDeps<AppWebsocketContext> deps)
-
-
Method Details
-
helloCurrentPeer
public void helloCurrentPeer()Description copied from interface:AppWebsocketContext
A custom method example. This will simply send a "Hello!" message to the current peer.- Specified by:
helloCurrentPeer
in interfaceAppWebsocketContext
-