Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于websocket的疑问 #1

Open
babizhu opened this issue Dec 18, 2023 · 0 comments
Open

关于websocket的疑问 #1

babizhu opened this issue Dec 18, 2023 · 0 comments

Comments

@babizhu
Copy link

babizhu commented Dec 18, 2023

您好,我在做一个websocket的项目,参考了你的代码
https://github.com/wuxudong/socket.io-netty-redisson/blob/master/server/src/main/java/com/corundumstudio/socketio/demo/ChatLauncher.java
但是程序启动后,websokcet客户发往a服务器的的数据,并不能在b服务器被收到,尽管他们都在同一个room中

能否请教一下原因,

class MyMessageListener : PubSubListener {
override fun onMessage(message: ConnectMessage) {
println("Received message: ${message.toString()}")
}
}

我必须加上这些代码,才能收到从其他服务器发过来的数据,请问这正常嘛?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant