Swoole\WebSocket\Server::pack

Get a pack of binary data to send in a single frame.

説明

public static binary Swoole\WebSocket\Server::pack(
    string $data,
    string $opcode = ?,
    string $finish = ?,
    string $mask = ?
)

パラメータ

data

opcode

finish

mask

戻り値