PHP Class WebsocketClient, php-websocket

Supporting handshake from drafts: draft-hixie-thewebsocketprotocol-76 draft-ietf-hybi-thewebsocketprotocol-00
Author: Simon Samtleben ([email protected])
Show file Open project: nekudo/php-websocket Class Usage Examples

Public Methods

Method Description
__construct ( )
__destruct ( )
checkConnection ( )
connect ( $host, $port, $path, $origin = false )
disconnect ( )
reconnect ( )
sendData ( $data, $type = 'text', $masked = true )

Private Methods

Method Description
_generateRandomString ( $length = 10, $addSpaces = true, $addNumbers = true )
_hybi10Decode ( $data )
_hybi10Encode ( $payload, $type = 'text', $masked = true )

Method Details

__construct() public method

public __construct ( )

__destruct() public method

public __destruct ( )

checkConnection() public method

public checkConnection ( )

connect() public method

public connect ( $host, $port, $path, $origin = false )

disconnect() public method

public disconnect ( )

reconnect() public method

public reconnect ( )

sendData() public method

public sendData ( $data, $type = 'text', $masked = true )