Class WebsocketController

java.lang.Object
org.faceless.publisher.web.WebsocketController

public class WebsocketController extends Object
A Websocket-based means of controlling the Webserver. Could theoretically be extended to add new functionality. Must be stateless.
  • Constructor Details

    • WebsocketController

      public WebsocketController()
  • Method Details

    • receive

      public void receive(AbstractWebsocketSession session, Json json) throws Exception
      Process the json command against the AbstractWebsocketSession - when overriding, make sure to "return super.process(session)" as the last operation
      Parameters:
      session - the session
      json - the command received from the client
      Throws:
      Exception