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
Proxy-Z opened this issue Jan 17, 2018 · 1 comment
Open

请教一下“应用层心跳” #24

Proxy-Z opened this issue Jan 17, 2018 · 1 comment

Comments

@Proxy-Z
Copy link

Proxy-Z commented Jan 17, 2018

在 conn.go 和 message.go 文件中都有heartbeat的设定,它的使用也需要在 Register 函数中注册一下吗,有相应的使用示例吗?

@leesper
Copy link
Owner

leesper commented Jan 17, 2018

恩恩需要注册一下……其实我都在考虑去掉它……因为不同的应用应该实现自己的心跳,带上一些自己特定的额外消息(extra info),暂时没有示例哈,你可以看看examples目录里面有我写的一些小例子

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