Skip to content

Commit b4c87c9

Browse files
authored
Update Server.php
1 parent 9f914fb commit b4c87c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Server
2929
*
3030
* @var array
3131
*/
32-
public $appInfo = array();
32+
public $appInfo = [];
3333

3434
/**
3535
* 心跳时间
@@ -158,7 +158,7 @@ public function onConnect($connection) {
158158
public function onWebSocketConnect(TcpConnection $connection, $header)
159159
{
160160
// /app/1234567890abcdefghig?protocol=7&client=js&version=3.2.4&flash=false
161-
if (!preg_match('/ \/app\/([^\/^\?^ ]+)/', (string)$header, $match)) {
161+
if (!preg_match('/\/app\/([^\/^\?^ ]+)/', (string)$header, $match)) {
162162
echo "app_key not found\n$header\n";
163163
$connection->pauseRecv();
164164
return;

0 commit comments

Comments
 (0)