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

同时使用两个demo,这个和血战麻将,本demo中同时发送两个协议的数据会全部发送到一个路由中,产生粘包问题 #3

Open
ytrfegd opened this issue Jul 12, 2024 · 0 comments

Comments

@ytrfegd
Copy link

ytrfegd commented Jul 12, 2024

nano.request("Manager.AuthLogin", authLoginReq, function(data){ console.log(data); });
nano.request("gate.Handler.Signup", {"name":"Signup chrislonng", "age":10000}, function(data){ console.log(data);});

在这个调用中,路由Manager.AuthLogin(s *session.Session, jsonData []byte)同时收到了authLoginReq和下面测试用的gate.Handler.Signup(也就是jsonData中同时拥有两个request的数据),使用websocket却又粘包,非常奇怪

@ytrfegd ytrfegd changed the title 同时使用两个demo,这个和血战麻将,本demo中同时发送两个协议的数据会全部发送到一个路由中 同时使用两个demo,这个和血战麻将,本demo中同时发送两个协议的数据会全部发送到一个路由中,产生粘包问题 Jul 12, 2024
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