Class Endpoint
java.lang.Object
jakarta.websocket.Endpoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onClose
(Session session, CloseReason closeReason) Event that is triggered when a session has closed.void
Event that is triggered when a protocol error occurs.abstract void
onOpen
(Session session, EndpointConfig config) Event that is triggered when a new session starts.
-
Constructor Details
-
Endpoint
public Endpoint()
-
-
Method Details
-
onOpen
Event that is triggered when a new session starts.- Parameters:
session
- The new session.config
- The configuration with which the Endpoint was configured.
-
onClose
Event that is triggered when a session has closed.- Parameters:
session
- The sessioncloseReason
- Why the session was closed
-
onError
-