diff --git a/src/Server.php b/src/Server.php index d083b7ce..0a34fc6f 100644 --- a/src/Server.php +++ b/src/Server.php @@ -22,7 +22,6 @@ public function __construct( */ public function open(Connection $connection): void { - dump('Opening connection...'); try { $this->verifyOrigin($connection); diff --git a/src/WebSockets/WsConnection.php b/src/WebSockets/WsConnection.php index c8bf066d..9b965444 100644 --- a/src/WebSockets/WsConnection.php +++ b/src/WebSockets/WsConnection.php @@ -18,7 +18,7 @@ public function __construct(public Conn $connection) new CloseFrameChecker, onMessage: fn (Message $message) => $this->emit('message', [$message->getPayload()]), onControl: fn () => $this->close(), - sender: [$connection, 'write'] + sender: [$connection, 'send'] ); $connection->on('data', [$this->buffer, 'onData']);