Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Jan 19, 2022
1 parent 6974549 commit 25243e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Engine/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ protected function verify($req, $res, $upgrade, $fn)
}
$transport = $req->_query['transport'];
$sid = isset($req->_query['sid']) ? $req->_query['sid'] : '';
if ($transport === 'websocket' && empty($sid)) {
return call_user_func($fn, self::ERROR_UNKNOWN_TRANSPORT, false, $req, $res);
}
if($sid)
{
if(!isset($this->clients[$sid]))
Expand Down

1 comment on commit 25243e3

@jichangfeng
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个提交后,下面的socketio客户端就连不上了,官方的 socketio-client 没问题

https://pub.dev/packages/socket_io_client

Please sign in to comment.