Package jmri.server.json
Class JsonWebSocket
- java.lang.Object
-
- jmri.server.json.JsonWebSocket
-
@WebSocket public class JsonWebSocket extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JsonWebSocket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JsonConnection
getConnection()
void
onClose(int i, java.lang.String string)
void
onError(java.lang.Throwable thrwbl)
void
onMessage(java.lang.String string)
void
onOpen(org.eclipse.jetty.websocket.api.Session sn)
-
-
-
Constructor Detail
-
JsonWebSocket
public JsonWebSocket()
-
-
Method Detail
-
onOpen
@OnWebSocketConnect public void onOpen(org.eclipse.jetty.websocket.api.Session sn)
-
onClose
@OnWebSocketClose public void onClose(int i, java.lang.String string)
-
onError
@OnWebSocketError public void onError(java.lang.Throwable thrwbl)
-
onMessage
@OnWebSocketMessage public void onMessage(java.lang.String string)
-
getConnection
protected JsonConnection getConnection()
- Returns:
- the connection
-
-