WebSocket除了接收Swoole\Server和Swoole\Http\Server基类的回调函数外,额外增加了3个回调函数设置。其中:
Swoole\Server
Swoole\Http\Server
onMessage
onOpen
onHandShake