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

无法加入namespace? #1006

Open
6LWa6ZKx opened this issue Sep 29, 2024 · 0 comments
Open

无法加入namespace? #1006

6LWa6ZKx opened this issue Sep 29, 2024 · 0 comments

Comments

@6LWa6ZKx
Copy link

6LWa6ZKx commented Sep 29, 2024

前端:socket.io-client: 4.8.0
后端:netty-socketio:2.0.11

后端新增空间:
ioServer.addNamespace("/zhitws");
ioServer.startAsync();

前端:
const wsUrl = socketUrl + '/zhitws';
socketInst = io(wsUrl, {
withCredentials: true,
reconnectionAttempts: 120,
autoConnect: true,

链接成功后通过getNamespace获取还是默认的空间“”。
请问是版本不兼容吗?

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