public class StreamingWebSocketServlet.MyWebSocket
extends org.eclipse.jetty.websocket.api.WebSocketAdapter
Constructor and Description |
---|
MyWebSocket() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSubscribedTo(String eventName) |
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketText(String message) |
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
onWebSocketConnect
in class org.eclipse.jetty.websocket.api.WebSocketAdapter
public void onWebSocketClose(int statusCode, String reason)
onWebSocketClose
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
onWebSocketClose
in class org.eclipse.jetty.websocket.api.WebSocketAdapter
public void onWebSocketText(String message)
onWebSocketText
in interface org.eclipse.jetty.websocket.api.WebSocketListener
onWebSocketText
in class org.eclipse.jetty.websocket.api.WebSocketAdapter
public boolean isSubscribedTo(String eventName)