This commit is contained in:
as2252258@163.com
2021-07-11 14:14:16 +08:00
parent b30abb50d5
commit bfb71139a5
+1
View File
@@ -33,6 +33,7 @@ class Websocket extends HAWebsocket
*/
public function onBaseListener()
{
$this->on('connect', function () {});
$this->on('handshake', $this->createHandler('handshake'));
$this->on('message', $this->createHandler('message'));
$this->on('close', $this->createHandler('close'));