public abstract class AbstractUserWampConfigurer extends AbstractWampConfigurer
SimpUserRegistry that maps a Principals name to a
WebSocket session id. Additionally a UserEventMessenger is configured as a bean
that allows sending EventMessages to user names in addition to WebSocket
session ids.
Example:
@Configuration
@EnableWamp
public class UserWampConfigurer extends AbstractUserWampConfigurer {
@Override
public void registerWampEndpoints(WampEndpointRegistry registry) {
registry.addEndpoint("/wamp").withSockJS();
}
}
| Constructor and Description |
|---|
AbstractUserWampConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureWebSocketTransport(WebSocketTransportRegistration registration)
Configure options related to the processing of messages received from and sent to
WebSocket clients.
|
org.springframework.messaging.simp.user.SimpUserRegistry |
simpUserRegistry() |
UserEventMessenger |
userEventMessenger(EventMessenger eventMessenger) |
addArgumentResolvers, addHandshakeInterceptors, configureClientInboundChannel, registerWampEndpoints@Bean public UserEventMessenger userEventMessenger(EventMessenger eventMessenger)
@Bean public org.springframework.messaging.simp.user.SimpUserRegistry simpUserRegistry()
public void configureWebSocketTransport(WebSocketTransportRegistration registration)
WampConfigurerconfigureWebSocketTransport in interface WampConfigurerconfigureWebSocketTransport in class AbstractWampConfigurerCopyright © 2014–2017. All rights reserved.