\WebSocketClient

Created by PhpStorm.

User: xuxiao Date: 2016/12/13 Time: 14:00

Summary

Methods
Properties
Constants
__construct()
__destruct()
sendData()
connect()
checkConnection()
disconnect()
reconnect()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_generateRandomString()
_hybi10Encode()
_hybi10Decode()
$_host
$_port
$_path
$_origin
$_Socket
$_connected
N/A

Properties

$_host

$_host : 

Type

$_port

$_port : 

Type

$_path

$_path : 

Type

$_origin

$_origin : 

Type

$_Socket

$_Socket : 

Type

$_connected

$_connected : 

Type

Methods

__construct()

__construct() 

__destruct()

__destruct() 

sendData()

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

Parameters

$data
$type
$masked

connect()

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

Parameters

$host
$port
$path
$origin

checkConnection()

checkConnection() 

disconnect()

disconnect() 

reconnect()

reconnect() 

_generateRandomString()

_generateRandomString(  $length = 10,   $addSpaces = true,   $addNumbers = true) 

Parameters

$length
$addSpaces
$addNumbers

_hybi10Encode()

_hybi10Encode(  $payload,   $type = 'text',   $masked = true) 

Parameters

$payload
$type
$masked

_hybi10Decode()

_hybi10Decode(  $data) 

Parameters

$data