File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ public function recv(float $timeout = -1)
71
71
}
72
72
73
73
/**
74
- * @param bool| int $finish TODO: When swoole version >= 4.4.12, `finish` is SWOOLE_WEBSOCKET_FLAG_FIN or SWOOLE_WEBSOCKET_FLAG_COMPRESS
74
+ * @param int $flags SWOOLE_WEBSOCKET_FLAG_FIN or SWOOLE_WEBSOCKET_FLAG_COMPRESS
75
75
*/
76
- public function push (string $ data , int $ opcode = WEBSOCKET_OPCODE_TEXT , $ finish = null ): bool
76
+ public function push (string $ data , int $ opcode = WEBSOCKET_OPCODE_TEXT , int $ flags = null ): bool
77
77
{
78
- if (isset ($ finish )) {
79
- return $ this ->client ->push ($ data , $ opcode , $ finish );
78
+ if (isset ($ flags )) {
79
+ return $ this ->client ->push ($ data , $ opcode , $ flags );
80
80
}
81
81
return $ this ->client ->push ($ data , $ opcode );
82
82
}
You can’t perform that action at this time.
0 commit comments