Example usage for Java org.springframework.web.socket WebSocketSession fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close(CloseStatus status) Close the WebSocket connection with the given close status. |
void | close() Close the WebSocket connection with status 1000, i.e. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
String | getAcceptedProtocol() Return the negotiated sub-protocol. |
Map | getAttributes() Return the map with attributes associated with the WebSocket session. |
Class> | getClass() Returns the runtime class of this Object . |
HttpHeaders | getHandshakeHeaders() Return the headers used in the handshake request (never null ). |
String | getId() Return a unique session identifier. |
InetSocketAddress | getLocalAddress() Return the address on which the request was received. |
Principal | getPrincipal() Return a java.security.Principal instance containing the name of the authenticated user. |
InetSocketAddress | getRemoteAddress() Return the address of the remote client. |
int | getTextMessageSizeLimit() Get the configured maximum size for an incoming text message. |
URI | getUri() Return the URI used to open the WebSocket connection. |
boolean | isOpen() Return whether the connection is still open. |
void | sendMessage(WebSocketMessage> message) Send a WebSocket message: either TextMessage or BinaryMessage . |
void | setTextMessageSizeLimit(int messageSizeLimit) Configure the maximum size for an incoming text message. |
String | toString() Returns a string representation of the object. |