Package jmri.web.servlet.simple
Class SimpleServlet.SimpleWebSocket
- java.lang.Object
-
- jmri.web.servlet.simple.SimpleServlet.SimpleWebSocket
-
- Enclosing class:
- SimpleServlet
@WebSocket public static class SimpleServlet.SimpleWebSocket extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SimpleWebSocket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onError(java.lang.Throwable thrwbl)
void
onMessage(java.lang.String string)
void
onOpen(org.eclipse.jetty.websocket.api.Session cnctn)
void
sendMessage(java.lang.String message)
-
-
-
Constructor Detail
-
SimpleWebSocket
public SimpleWebSocket()
-
-
Method Detail
-
sendMessage
public void sendMessage(java.lang.String message) throws java.io.IOException
- Throws:
java.io.IOException
-
onOpen
@OnWebSocketConnect public void onOpen(org.eclipse.jetty.websocket.api.Session cnctn)
-
onError
@OnWebSocketError public void onError(java.lang.Throwable thrwbl)
-
onMessage
@OnWebSocketMessage public void onMessage(java.lang.String string)
-
-