Package org.eclipse.jetty.websocket.api
Interface WebSocketListener
-
- All Superinterfaces:
WebSocketConnectionListener
- All Known Implementing Classes:
NoOpEndpoint
,WebSocketAdapter
@Deprecated(since="2021-05-27") public interface WebSocketListener extends WebSocketConnectionListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Basic WebSocket Listener interface for incoming WebSocket message events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
onWebSocketBinary(byte[] payload, int offset, int len)
Deprecated.A WebSocket binary frame has been received.void
onWebSocketText(java.lang.String message)
Deprecated.A WebSocket Text frame was received.-
Methods inherited from interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
onWebSocketClose, onWebSocketConnect, onWebSocketError
-
-
-
-
Method Detail
-
onWebSocketBinary
void onWebSocketBinary(byte[] payload, int offset, int len)
Deprecated.A WebSocket binary frame has been received.- Parameters:
payload
- the raw payload array receivedoffset
- the offset in the payload array where the data startslen
- the length of bytes in the payload
-
onWebSocketText
void onWebSocketText(java.lang.String message)
Deprecated.A WebSocket Text frame was received.- Parameters:
message
- the message
-
-