PHP Class WebsocketClient, php-websocket

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

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

public __construct ( )

__destruct() public méthode

public __destruct ( )

checkConnection() public méthode

public checkConnection ( )

connect() public méthode

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

disconnect() public méthode

public disconnect ( )

reconnect() public méthode

public reconnect ( )

sendData() public méthode

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