Class WebSocketEndPoint
java.lang.Object
jakarta.websocket.Endpoint
org.cometd.server.websocket.jakarta.WebSocketEndPoint
- All Implemented Interfaces:
jakarta.websocket.MessageHandler
,jakarta.websocket.MessageHandler.Whole<String>
- Direct Known Subclasses:
WebSocketTransport.EndPoint
public class WebSocketEndPoint
extends jakarta.websocket.Endpoint
implements jakarta.websocket.MessageHandler.Whole<String>
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.websocket.MessageHandler
jakarta.websocket.MessageHandler.Partial<T>, jakarta.websocket.MessageHandler.Whole<T>
-
Constructor Summary
ConstructorDescriptionWebSocketEndPoint
(AbstractWebSocketTransport transport, BayeuxContext bayeuxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onClose
(jakarta.websocket.Session wsSession, jakarta.websocket.CloseReason closeReason) void
void
void
onOpen
(jakarta.websocket.Session wsSession, jakarta.websocket.EndpointConfig config) toString()
protected void
writeComplete
(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
-
Constructor Details
-
WebSocketEndPoint
-
-
Method Details
-
onOpen
public void onOpen(jakarta.websocket.Session wsSession, jakarta.websocket.EndpointConfig config) - Specified by:
onOpen
in classjakarta.websocket.Endpoint
-
onMessage
-
onClose
public void onClose(jakarta.websocket.Session wsSession, jakarta.websocket.CloseReason closeReason) - Overrides:
onClose
in classjakarta.websocket.Endpoint
-
onError
- Overrides:
onError
in classjakarta.websocket.Endpoint
-
writeComplete
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages) -
toString
-