PHP - Manual: Swoole\WebSocket\Server::pack
2024-12-21
(PECL swoole >= 1.9.0)
Swoole\WebSocket\Server::pack — Get a pack of binary data to send in a single frame.
$data
,$opcode
= ?,$finish
= ?,$mask
= ?
data
opcode
finish
mask
官方地址:https://www.php.net/manual/en/swoole-websocket-server.pack.php