简体   繁体   中英

how to get all connected users in websocket using simplebroker or rabbitMQ with java spring

如何使用带有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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM