We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
switch zconf.GlobalObject.Mode { case zconf.ServerModeTcp: go s.ListenTcpConn() case zconf.ServerModeWebsocket: fmt.Println("go to websocket") go s.ListenWebsocketConn() case zconf.ServerModeKcp: go s.ListenKcpConn() default: go s.ListenTcpConn() go s.ListenWebsocketConn() }
为什么默认开启是tcp + webscoket,而只有websocket不需要开启tcp服务吗?
The text was updated successfully, but these errors were encountered:
case zconf.ServerModeWebsocket 这个case我理解就是你需要的。
case zconf.ServerModeWebsocket
Sorry, something went wrong.
No branches or pull requests
为什么默认开启是tcp + webscoket,而只有websocket不需要开启tcp服务吗?
The text was updated successfully, but these errors were encountered: