如何使用带有Java Spring的simplebroker或rabbitMQ在websocket聊天应用程序中获取所有已连接用户
You can use SimpUserRegistry;
@Autowired
SimpUserRegistry simpUserRegistry;
...
public void foo(){
simpUserRegistry.getUsers();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.