-
Notifications
You must be signed in to change notification settings - Fork 8
Transports
Ralph Schaer edited this page Apr 28, 2026
·
1 revision
wamp2spring currently supports multiple wire formats and more than one transport style.
Both the servlet and reactive modules expose a WAMP endpoint at /wamp by default.
Supported subprotocols:
wamp.2.jsonwamp.2.msgpackwamp.2.cborwamp.2.smile
Frame handling follows the negotiated serializer:
-
wamp.2.jsonuses text frames - the binary serializers use binary frames
The servlet stack also provides HTTP long-poll transport through @EnableServletWampLongpoll.
This transport is exposed below /wamp and uses endpoints for:
- opening a transport session
- sending WAMP frames
- receiving queued outbound frames
- closing the transport
Long-poll uses the same core session support, authentication flow, and routing model as WebSocket.
Servlet long-poll behavior can be tuned through WampServletLongpollConfigurer:
- receive timeout
- maximum queue size
- idle timeout for transports
The current codebase supports:
- JSON for standard text-frame interoperability
- MessagePack for compact binary transport
- CBOR for compact binary transport
- Smile for an additional Jackson-backed binary format
- Use WebSocket when possible. It is the native WAMP transport and has the best interoperability story.
- Use servlet long-poll only when your deployment environment requires HTTP-based fallback semantics.
- There is no separate reactive long-poll module in the current repository.