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.
Hyperf\WebSocketClient\Client::push()
1 parent b3f9a4b commit d434e0dCopy full SHA for d434e0d
src/Client.php
@@ -75,10 +75,7 @@ public function recv(float $timeout = -1)
75
*/
76
public function push(string $data, int $opcode = WEBSOCKET_OPCODE_TEXT, int $flags = null): bool
77
{
78
- if (isset($flags)) {
79
- return $this->client->push($data, $opcode, $flags);
80
- }
81
- return $this->client->push($data, $opcode);
+ return $this->client->push($data, $opcode, $flags);
82
}
83
84
public function close(): bool
0 commit comments