diff --git a/README.md b/README.md index c0b2144..4b89b59 100755 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ $webSocketServer->run(); ```php send('{"user_id" : 123}'); diff --git a/src/Components/WscMain.php b/src/Components/WscMain.php index 6fbb055..d958735 100755 --- a/src/Components/WscMain.php +++ b/src/Components/WscMain.php @@ -121,7 +121,7 @@ protected function connect(ClientConfig $config): void 'Host' => $this->config->getHost() . ':' . $this->config->getPort(), 'User-Agent' => 'websocket-client-php', 'Connection' => 'Upgrade', - 'Upgrade' => 'WebSocket', + 'Upgrade' => 'websocket', 'Sec-WebSocket-Key' => $key, 'Sec-Websocket-Version' => '13', ];