Свойство | Type | Description | |
---|---|---|---|
$buffer | String representation of the payload contents | ||
$frames | Wrench\Frame\Frame[] | A payload may consist of one or more frames |
Méthode | Description | |
---|---|---|
__toString ( ) : string | ||
encode ( string $data, integer $type = Protocol::TYPE_TEXT, boolean $masked = false ) : |
Encodes a payload | |
getPayload ( ) : string | ||
getRemainingData ( ) : number | null | Gets the number of remaining bytes before this payload will be complete | |
getType ( ) : integer | Gets the type of the payload | |
isComplete ( ) : boolean | Whether the payload is complete | |
isWaitingForData ( ) : boolean | Whether this payload is waiting for more data | |
receiveData ( string $data ) : void | Receive raw data into the payload | |
sendToSocket ( |
Méthode | Description | |
---|---|---|
getCurrentFrame ( ) : mixed | Gets the current frame for the payload | |
getFrame ( ) : Wrench\Frame\Frame | Get a frame object | |
getReceivingFrame ( ) : Wrench\Frame\Frame | Gets the frame into which data should be receieved |
protected getCurrentFrame ( ) : mixed | ||
Résultat | mixed |
abstract protected getFrame ( ) : Wrench\Frame\Frame | ||
Résultat | Wrench\Frame\Frame |
protected getReceivingFrame ( ) : Wrench\Frame\Frame | ||
Résultat | Wrench\Frame\Frame |
public getRemainingData ( ) : number | null | ||
Résultat | number | null |
public isComplete ( ) : boolean | ||
Résultat | boolean |
public isWaitingForData ( ) : boolean | ||
Résultat | boolean |
public receiveData ( string $data ) : void | ||
$data | string | |
Résultat | void |
public sendToSocket ( |
||
$socket | ||
Résultat | boolean |