Interface AppWebsocketContext

All Superinterfaces:
WebsocketContext<AppWebsocketContext>
All Known Implementing Classes:
AppWebsocketContextDefault

public interface AppWebsocketContext extends 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 Details

    • helloCurrentPeer

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