Skip to content

Commit 774bd7a

Browse files
committed
Fixed bug that push is not work.
1 parent 0e9788c commit 774bd7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WebSocket/Response.php

+2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ public function push(FrameInterface $frame): bool
3636

3737
if ($this->connection instanceof SwooleResponse) {
3838
$this->connection->push($data, $frame->getOpcode(), $flags);
39+
return true;
3940
}
4041

4142
if ($this->connection instanceof Server) {
4243
$this->connection->push($this->fd, $data, $frame->getOpcode(), $flags);
44+
return true;
4345
}
4446

4547
throw new InvalidArgumentException('The websocket connection is invalid.');

0 commit comments

Comments
 (0)