This commit is contained in:
2021-02-20 13:02:58 +08:00
parent 874085f97a
commit d05cb47f66
18 changed files with 56 additions and 49 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class OnConnect extends Callback
*/
public function onHandler(\Swoole\Server $server, int $fd, int $reactorId)
{
$event = Snowflake::app()->event;
$event = Snowflake::app()->getEvent();
$event->trigger(Event::RECEIVE_CONNECTION, [$server, $fd, $reactorId]);
}