phpday 2027 - Call for Papers

Swoole\WebSocket\Server::pack

(PECL swoole >= 1.9.0)

Swoole\WebSocket\Server::pack — Get a pack of binary data to send in a single frame.

Description

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

Parameters

data

opcode

finish

mask

Return Values

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top