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

如何主动关闭客户端连接? #842

Open
secondtonone1 opened this issue May 24, 2020 · 3 comments
Open

如何主动关闭客户端连接? #842

secondtonone1 opened this issue May 24, 2020 · 3 comments

Comments

@secondtonone1
Copy link

您好,最近再用origin搭建server,服务器中打算设计心跳逻辑,tcpservice中如何主动关闭一个客户端连接?

@duanhf2012
Copy link
Owner

可以通过 tcpService.Close(clientid)关闭连接。

@secondtonone1
Copy link
Author

非常感谢您提供的origin引擎,目前独立开发游戏后台基于origin搭建服务器hobo,有不懂得就请教您,感谢。

@duanhf2012
Copy link
Owner

不用客气,有什么优化建议也可以随时提。你也可以加我的QQ号 6549168

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

2 participants