beetlex-io / FastHttpApi

a lightweight and high-performance http/websocket service component in the dotnet core platform that supports TLS.
Apache License 2.0
650 stars 175 forks source link

websocket没有断开事件 #152

Closed miaobei5555 closed 3 years ago

miaobei5555 commented 3 years ago

websocket没有断开事件 我想在断开事件里处理点事情 但发现 并没有断开事件 只有 WebSocketConnect WebSocketReceive 我试着重写了Disconnect 但还是没有触发websocket的断开事件

beetlex-io commented 3 years ago

是client还是server?

miaobei5555 commented 3 years ago

是client还是server?

server 啊 创建websocket服务器 客户端断开 事件 我服务器 要处理事情呢

beetlex-io commented 3 years ago

HttpDisconnect事件 HttpToken token = (HttpToken)e.Session.Tag; token有websocket属性判断