kbengine icon indicating copy to clipboard operation
kbengine copied to clipboard

客户端崩溃或退出处理

Open sun1284065663 opened this issue 4 years ago • 4 comments

服务端有没有属性或方法知道客户端崩溃了或者退出了,需要实时的那种

sun1284065663 avatar May 25 '21 01:05 sun1284065663

onClientDead

huhubis avatar May 29 '21 05:05 huhubis

onClientDead

你好,你说的是onClientDeath这个回调把,这个回调不是实时的,客户端掉线后需要过一段时间它才会调用

sun1284065663 avatar May 29 '21 07:05 sun1284065663

你用tcp模式试试

kbengine avatar May 29 '21 07:05 kbengine

你用tcp模式技巧

客户端勾选了 force disable udp 就可以实时知道了,这样会有不良影响吗

sun1284065663 avatar May 29 '21 08:05 sun1284065663