Swoole\WebSocket\Server::pack

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

Description

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

Parameters

data

opcode

finish

mask

Return Values