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

Linux下客户端访问的数据,不让服务端自动返回 #145

Open
zhang-321 opened this issue May 20, 2024 · 2 comments
Open

Linux下客户端访问的数据,不让服务端自动返回 #145

zhang-321 opened this issue May 20, 2024 · 2 comments

Comments

@zhang-321
Copy link

Linux下客户端访问的数据,不让服务端自动返回。
例如客户端有发送和接收数据功能;客户发送数据abc,服务端不要把数据abc再发给客户端

@zhang-321
Copy link
Author

从版本0.0.1到版本0.5.0,都有这样的问题,是需要什么地方配置,还是需要改一下什么地方就可以了。

@zhang-321
Copy link
Author

原来是用的有问题
Uploading 微信图片_20240520165759.png…
屏蔽掉 //out = data //

//接收数据 OnMessage callback
func (s *Server) OnMessage(c *gev.Connection, ctx interface{}, data []byte) (out interface{}) {
// Log("OnMessage")
// out = data //

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