改名
This commit is contained in:
@@ -182,8 +182,6 @@ class Server extends Application
|
|||||||
$newListener->on('close', [Snowflake::createObject(OnClose::class), 'onHandler']);
|
$newListener->on('close', [Snowflake::createObject(OnClose::class), 'onHandler']);
|
||||||
$newListener->on('packet', [Snowflake::createObject(OnPacket::class), 'onHandler']);
|
$newListener->on('packet', [Snowflake::createObject(OnPacket::class), 'onHandler']);
|
||||||
$newListener->on('receive', [Snowflake::createObject(OnReceive::class), 'onHandler']);
|
$newListener->on('receive', [Snowflake::createObject(OnReceive::class), 'onHandler']);
|
||||||
|
|
||||||
var_dump($newListener);
|
|
||||||
} else if ($config['type'] == self::WEBSOCKET) {
|
} else if ($config['type'] == self::WEBSOCKET) {
|
||||||
throw new Exception('Base server must instanceof \Swoole\WebSocket\Server::class.');
|
throw new Exception('Base server must instanceof \Swoole\WebSocket\Server::class.');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user