This commit is contained in:
2020-09-02 11:58:41 +08:00
parent cff194b313
commit 6eec72e975
+2
View File
@@ -182,6 +182,8 @@ class Server extends Application
$newListener->on('close', [Snowflake::createObject(OnClose::class), 'onHandler']);
$newListener->on('packet', [Snowflake::createObject(OnPacket::class), 'onHandler']);
$newListener->on('receive', [Snowflake::createObject(OnReceive::class), 'onHandler']);
var_dump($newListener);
} else if ($config['type'] == self::WEBSOCKET) {
throw new Exception('Base server must instanceof \Swoole\WebSocket\Server::class.');
} else {