PHP Class WebSocket, phpwebsocket

Show file Open project: GeorgeNava/phpwebsocket Class Usage Examples

Public Properties

Property Type Description
$debug
$master
$sockets
$users

Public Methods

Method Description
__construct ( $address, $port )
broadcast ( $msg, $except = null )
connect ( $socket )
disconnect ( $socket )
dohandshake ( $user, $buffer )
getheaders ( $req )
getuserbysocket ( $socket )
listen ( )
log ( $msg = "" )
process ( $user, $msg )
say ( $msg = "" )
send ( $client, $msg )
unwrap ( $msg = "" )
wrap ( $msg = "" )

Method Details

__construct() public method

public __construct ( $address, $port )

broadcast() public method

public broadcast ( $msg, $except = null )

connect() public method

public connect ( $socket )

disconnect() public method

public disconnect ( $socket )

dohandshake() public method

public dohandshake ( $user, $buffer )

getheaders() public method

public getheaders ( $req )

getuserbysocket() public method

public getuserbysocket ( $socket )

listen() public method

public listen ( )

log() public method

public log ( $msg = "" )

process() public method

public process ( $user, $msg )

say() public method

public say ( $msg = "" )

send() public method

public send ( $client, $msg )

unwrap() public method

public unwrap ( $msg = "" )

wrap() public method

public wrap ( $msg = "" )

Property Details

$debug public property

public $debug

$master public property

public $master

$sockets public property

public $sockets

$users public property

public $users