PHP 7.1.19 Released

The Swoole\WebSocket\Server class

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

Introduction

Class synopsis

Swoole\WebSocket\Server extends Swoole\Http\Server {
/* Methods */
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 )
/* Inherited methods */
public void Swoole\Http\Server::on ( string $event_name , callable $callback )
public void Swoole\Http\Server::start ( void )
}

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top