Package jakarta.websocket
Class Endpoint
java.lang.Object
jakarta.websocket.Endpoint
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidonClose(Session session, CloseReason closeReason) Event that is triggered when a session has closed.voidEvent that is triggered when a protocol error occurs.abstract voidonOpen(Session session, EndpointConfig config) Event that is triggered when a new session starts.
- 
Constructor Details- 
Endpointpublic Endpoint()
 
- 
- 
Method Details- 
onOpenEvent that is triggered when a new session starts.- Parameters:
- session- The new session.
- config- The configuration with which the Endpoint was configured.
 
- 
onCloseEvent that is triggered when a session has closed.- Parameters:
- session- The session
- closeReason- Why the session was closed
 
- 
onErrorEvent that is triggered when a protocol error occurs.- Parameters:
- session- The session.
- throwable- The exception.
 
 
-