yangkang2021.github.io

mediasoup的demo的websocket的keepalive与断网检测

1. 心跳必须是双向的,断网后才能serve,client各自检测到

2. mediassoup的websocket server怎么检查客户端掉线

3. 客户端心跳做法

websocket两端判断网络可用性都需要加心跳检测,两种做法:推荐第一种,websocket自带的方式