-
-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$socket is null #273
Comments
感觉是连接已经关闭后执行了join操作导致。 public function join($room)
{
if(isset($this->rooms[$room])) return $this;
$this->adapter->add($this->id, $room);
$this->rooms[$room] = $room;
return $this;
} 改成 public function join($room)
{
if (!$this->connected) return $this;
if(isset($this->rooms[$room])) return $this;
$this->adapter->add($this->id, $room);
$this->rooms[$room] = $room;
return $this;
} 试下看下还是否报错 |
https://github.com/walkor/phpsocket.io/blob/master/src/Socket.php 里 join方法加一句 |
好的,谢谢。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$socket is null
The text was updated successfully, but these errors were encountered: