This commit is contained in:
2020-09-02 12:01:25 +08:00
parent 08b4de0346
commit f777078821
-2
View File
@@ -182,8 +182,6 @@ 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 {