The Swoole\WebSocket\Server class

Introduction

Class synopsis

Swoole\WebSocket\Server
class Swoole\WebSocket\Server extends Swoole\Http\Server {
/* Methods */
public bool exist(int $fd)
public ReturnType on(string $event_name, callable $callback)
public static binary pack(
    string $data,
    string $opcode = ?,
    string $finish = ?,
    string $mask = ?
)
public void push(
    string $fd,
    string $data,
    string $opcode = ?,
    string $finish = ?
)
public static string unpack(binary $data)
/* Inherited methods */
public void Swoole\Http\Server::on(string $event_name, callable $callback)
public void Swoole\Http\Server::start()
}
Table of Contents