Package org.springframework.web.socket.messaging
@NonNullApi
@NonNullFields
package org.springframework.web.socket.messaging
WebSocket integration for Spring's messaging module.
-
ClassDescriptionA base class for events for a message received from a WebSocket client and parsed into a higher-level sub-protocol (for example, STOMP).A default implementation of
SimpUserRegistrythat relies onAbstractSubProtocolEventapplication context events to keep track of connected users and their subscriptions.A connected event represents the server response to a client's connect request.Event raised when a new WebSocket client using a Simple Messaging Protocol (for example, STOMP) as the WebSocket sub-protocol issues a connect request.Event raised when the session of a WebSocket client using a Simple Messaging Protocol (for example, STOMP) as the WebSocket sub-protocol is closed.Event raised when a new WebSocket client using a Simple Messaging Protocol (for example, STOMP) sends a subscription request.Event raised when a new WebSocket client using a Simple Messaging Protocol (for example, STOMP) sends a request to remove a subscription.ASubProtocolErrorHandlerfor use with STOMP.ASubProtocolHandlerfor STOMP that supports versions 1.0, 1.1, and 1.2 of the STOMP specification.Contract for access to session counters.A contract for handling sub-protocol errors sent to clients.A contract for handling WebSocket messages as part of a higher level protocol, referred to as "sub-protocol" in the WebSocket RFC specification.An implementation ofWebSocketHandlerthat delegates incoming WebSocket messages to aSubProtocolHandleralong with aMessageChannelto which the sub-protocol handler can send messages from WebSocket clients to the application.Contract for access to session counters.A subclass ofSimpAnnotationMethodMessageHandlerto provide support forControllerAdvicewith global@MessageExceptionHandlermethods.A STOMP over WebSocket client that connects using an implementation ofWebSocketClientincludingSockJsClient.