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

心跳 #24

Open
plum330 opened this issue Apr 10, 2021 · 1 comment
Open

心跳 #24

plum330 opened this issue Apr 10, 2021 · 1 comment

Comments

@plum330
Copy link

plum330 commented Apr 10, 2021

客户端和服务端建立websocket连接后,客户端不需要定时给服务端发送心跳吗?

@LockGit
Copy link
Owner

LockGit commented Apr 10, 2021

@smallfish-root server有定时发心跳给client,失活的话当前连接会关闭,相应的移除房间中的用户
具体可以搜索下:ticker := time.NewTicker(s.Options.PingPeriod)

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