Table of contents
Features
wamp2spring implements WAMP v2 broker and dealer operations in one shared routing scope. HELLO carries a realm string, but the router does not partition sessions, registrations, subscriptions, or meta APIs by realm.
All constants in Feature are enabled initially. WELCOME advertises the enabled role features. Some advanced operations also require the client to advertise the corresponding feature under its role in HELLO; enabling a router feature alone does not satisfy that negotiation.
Dealer
The role switch is Feature.DEALER. The following names correspond to constants prefixed with DEALER_ (for example, call_timeout is Feature.DEALER_CALL_TIMEOUT).
| Feature | Implemented behavior |
|---|---|
call_canceling |
CANCEL/INTERRUPT with skip, kill, and killnowait; advanced modes require caller support |
call_timeout |
Dealer timer for routed client invocations; positive timeout in milliseconds, forwarded to supporting callees |
progressive_call_results |
Forward progressive YIELD/RESULT until a final result or error |
progressive_call_invocations |
Forward a sequence of CALL chunks to a supporting callee; not supported by annotated Java procedures |
caller_identification |
disclose_me and caller identity details |
pattern_based_registration |
Exact, prefix, and wildcard client registrations |
shared_registration |
Multiple callees with roundrobin, random, first, or last invocation policies |
sharded_registration |
invoke: "sharded" and a call routing key (rkey) |
call_reroute |
Retry another eligible callee after wamp.error.unavailable when rerouting is negotiated |
registration_meta_api |
Registration inspection and lifecycle topics |
session_meta_api |
Session inspection and administrative termination; requires both router roles and both session-meta switches |
testament_meta_api |
Register/flush disconnect publications; requires broker and dealer |
registration_revocation |
Java administrative revocation with extended UNREGISTERED for supporting callees |
See RPC for local Java method behavior and MetaAPIs for procedure names and feature dependencies.
Broker
The role switch is Feature.BROKER. Constants for this table use the BROKER_ prefix.
| Feature | Implemented behavior |
|---|---|
subscriber_blackwhite_listing |
eligible/exclude session IDs and the eligible_authid, exclude_authid, eligible_authrole, exclude_authrole options |
publisher_exclusion |
Publisher excluded by default; exclude_me: false includes it |
publisher_identification |
disclose_me and publisher identity details |
pattern_based_subscription |
Exact, prefix, and wildcard subscriptions |
sharded_subscription |
Subscriber node key (nkey) and publication routing key (rkey) |
event_retention |
Retained publications requested with get_retained; default store retains server publications only |
event_history |
Store publications per matching subscription for wamp.subscription.get_events |
session_meta_api |
Session meta support; also requires the dealer session-meta switch |
subscription_meta_api |
Subscription inspection, history retrieval, and lifecycle topics |
subscription_revocation |
Java administrative revocation with extended UNSUBSCRIBED for supporting subscribers |
See PubSub for filtering, storage, and local listener behavior. Reflection procedures are configured separately from these advertised flags; see MetaAPIs.
Disable features
The enable annotations accept a disable array:
@EnableServletWamp(disable = {Feature.DEALER, Feature.BROKER_EVENT_HISTORY})
Alternatively, use a Spring configurer bean:
import org.springframework.context.annotation.Configuration;
import ch.rasc.wamp2spring.config.Feature;
import ch.rasc.wamp2spring.config.Features;
import ch.rasc.wamp2spring.servlet.WampServletConfigurer;
@Configuration
public class WampOptions implements WampServletConfigurer {
@Override
public void configureFeatures(Features features) {
features.disable(Feature.BROKER_EVENT_RETENTION);
features.disable(Feature.BROKER_EVENT_HISTORY);
}
}
Features exposes disable, isEnabled, and isDisabled; there is no corresponding enable method. Disabling a role replaces its message handler with NoOpMessageHandler. These are startup settings, not a runtime feature-management API.
Protocol boundaries
The source has WebSocket and servlet HTTP long-poll transports with JSON, MessagePack, CBOR, and Smile. It does not implement RawSocket or batched long-poll protocols. The feature tables describe this implementation's capabilities, not every optional feature in the WAMP advanced profile.
Table of Contents
- Introduction
- Quickstart
- Maven
- Modules
- Features
- Configuration
- RPC
- Publish/Subscribe
- Meta APIs
- Security
- Authentication
- Transports
- Spring Session
- Events