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 9f914fb commit b4c87c9Copy full SHA for b4c87c9
src/Server.php
@@ -29,7 +29,7 @@ class Server
29
*
30
* @var array
31
*/
32
- public $appInfo = array();
+ public $appInfo = [];
33
34
/**
35
* 心跳时间
@@ -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\/([^\/^\?^ ]+)/', (string)$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