Event:’ping’

在将ping数据包写入服务器时触发。

  1. socket.on('ping',()=>{
  2. // ...
  3. })