2881099 / FreeIM

.NETCore websocket 实现简易、高性能、集群即时通讯组件,支持点对点通讯、群聊通讯、上线下线事件消息等众多实用性功能.
MIT License
1.42k stars 418 forks source link

前端设置心跳检测,30秒后重连token失效 #39

Open guipie opened 3 years ago

guipie commented 3 years ago

请问一下,token失效时间在哪配置的? image

2881099 commented 3 years ago

每次重连都是通过生成新的 token 才行

这个有效时间写死的值,正常够用

如果是断点调试,是很容易超时

guipie commented 3 years ago

好的,token失效了或者拿一个错误的token一直连 ,为了安全 怎么让客户端断开请求连接
Duplicate of #32#