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

服务端如何针对每个client 保存临时数据,比如token\session等.自己实现? #32

Open
json7 opened this issue Dec 4, 2018 · 3 comments

Comments

@json7
Copy link

json7 commented Dec 4, 2018

No description provided.

@leesper
Copy link
Owner

leesper commented Dec 4, 2018

每个连接(ServerConn或ClientConn)都有一个context.Context变量,可以考虑放在这里。

@json7
Copy link
Author

json7 commented Dec 4, 2018

ClientConn

但是OnConnectOption 方法并没有context信息

@leesper
Copy link
Owner

leesper commented Dec 4, 2018

有其他的函数可以设置的哦

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