onClose

连接被关闭时回调此函数。

  1. function onClose(swoole_client $client)
  • Server端关闭或Client端主动关闭,都会触发onClose事件