We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5c616 commit 9f914fbCopy full SHA for 9f914fb
src/Server.php
@@ -158,7 +158,7 @@ public function onConnect($connection) {
158
public function onWebSocketConnect(TcpConnection $connection, $header)
159
{
160
// /app/1234567890abcdefghig?protocol=7&client=js&version=3.2.4&flash=false
161
- if (!preg_match('/ \/app\/([^\/^\?^ ]+)/', $header, $match)) {
+ if (!preg_match('/ \/app\/([^\/^\?^ ]+)/', (string)$header, $match)) {
162
echo "app_key not found\n$header\n";
163
$connection->pauseRecv();
164
return;
0 commit comments