Swoole
PHP Manual

The Swoole\WebSocket\Server class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

简介

类摘要

Swoole\WebSocket\Server extends Swoole\Http\Server {
/* 方法 */
public boolean exist ( integer $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 )
/* 继承的方法 */
public void Swoole\Http\Server::on ( string $event_name , callable $callback )
public void Swoole\Http\Server::start ( void )
}

Table of Contents


Swoole
PHP Manual