Java Code Examples for org.springframework.web.socket.messaging.DefaultSimpUserRegistry

The following examples show how to use org.springframework.web.socket.messaging.DefaultSimpUserRegistry. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
protected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order) {
	DefaultSimpUserRegistry registry = new DefaultSimpUserRegistry();
	if (order != null) {
		registry.setOrder(order);
	}
	return registry;
}
 
Example 2
@Override
protected SimpUserRegistry createLocalUserRegistry(@Nullable Integer order) {
	DefaultSimpUserRegistry registry = new DefaultSimpUserRegistry();
	if (order != null) {
		registry.setOrder(order);
	}
	return registry;
}
 
Example 3
@Override
@SuppressWarnings("deprecation")
protected SimpUserRegistry createLocalUserRegistry() {
	org.springframework.messaging.simp.user.UserSessionRegistry sessionRegistry = userSessionRegistry();
	if (sessionRegistry != null) {
		return new UserSessionRegistryAdapter(sessionRegistry);
	}
	return new DefaultSimpUserRegistry();
}
 
Example 4
Source Project: spring-boot-protocol   Source File: WebsocketConfig.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 负责管理用户信息
 * @return
 */
@Bean
@ConditionalOnMissingBean(SimpUserRegistry.class)
public SimpUserRegistry userRegistry() {
    return new DefaultSimpUserRegistry();
}
 
Example 5
Source Project: training   Source File: SpringWebsocketsApplication.java    License: MIT License 4 votes vote down vote up
@Bean
public DefaultSimpUserRegistry userRegistry() {
	return new DefaultSimpUserRegistry();
}