Package org.faceless.publisher.web
Class WebsocketController
java.lang.Object
org.faceless.publisher.web.WebsocketController
A Websocket-based means of controlling the Webserver. Could theoretically be
extended to add new functionality.
Must be stateless.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
receive
(AbstractWebsocketSession session, Json json) Process the json command against the AbstractWebsocketSession - when overriding, make sure to "return super.process(session)" as the last operation
-
Constructor Details
-
WebsocketController
public WebsocketController()
-
-
Method Details
-
receive
Process the json command against the AbstractWebsocketSession - when overriding, make sure to "return super.process(session)" as the last operation- Parameters:
session
- the sessionjson
- the command received from the client- Throws:
Exception
-