PHP 8.5.0 Beta 3 available for testing

The Swoole\WebSocket\Server class

(PECL swoole >= 1.9.0)

็ฎ€ไป‹

็ฑปๆ‘˜่ฆ

class Swoole\WebSocket\Server extends Swoole\Http\Server {
/* ๆ–นๆณ• */
public exist(int $fd): bool
public on(string $event_name, callable $callback): ReturnType
public static pack(
    string $data,
    string $opcode = ?,
    string $finish = ?,
    string $mask = ?
): binary
public push(
    string $fd,
    string $data,
    string $opcode = ?,
    string $finish = ?
): void
public static unpack(binary $data): string
/* ็ปงๆ‰ฟ็š„ๆ–นๆณ• */
public Swoole\Http\Server::on(string $event_name, callable $callback): void
}

็›ฎๅฝ•

๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top