From 5808493e4676a4d338d7a6414dc77f9c50f8cd1d Mon Sep 17 00:00:00 2001 From: xl Date: Fri, 26 May 2023 18:42:55 +0800 Subject: [PATCH] qqq --- Abstracts/WebSocket.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Abstracts/WebSocket.php b/Abstracts/WebSocket.php index edf1390..691ec20 100644 --- a/Abstracts/WebSocket.php +++ b/Abstracts/WebSocket.php @@ -42,19 +42,6 @@ class WebSocket extends Component implements OnHandshakeInterface, OnMessageInte $this->collector = \Kiri::getDi()->get(DataGrip::class)->get('wss'); $this->handler = $this->collector->query('/', 'GET'); - $config = \Kiri::getDi()->get(ConfigProvider::class); - if ($this->handler->implement(OnHandshakeInterface::class)) { - $config->modify('server.ports.events.' . Constant::HANDSHAKE, [$this->handler->getClass(), 'onHandshake']); - } - if ($this->handler->implement(OnMessageInterface::class)) { - $config->modify('server.ports.events.' . Constant::MESSAGE, [$this->handler->getClass(), 'onMessage']); - } - if ($this->handler->implement(OnDisconnectInterface::class)) { - $config->modify('server.ports.events.' . Constant::DISCONNECT, [$this->handler->getClass(), 'onDisconnect']); - } - if ($this->handler->implement(OnCloseInterface::class)) { - $config->modify('server.ports.events.' . Constant::CLOSE, [$this->handler->getClass(), 'onClose']); - } }