Frame
in package
implements
Stringable
uses
StringableTrait
WebSocket\Frame\Frame class.
Represent a single frame sent or received as part of websocket message.
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- __toString() : string
- getOpcode() : string
- getPayload() : string
- getPayloadLength() : int
- isContinuation() : bool
- isFinal() : bool
- stringable() : string
Properties
$final
private
bool
$final
$opcode
private
string
$opcode
$payload
private
string
$payload
Methods
__construct()
public
__construct(string $opcode, string $payload, bool $final) : mixed
Parameters
- $opcode : string
- $payload : string
- $final : bool
__toString()
public
__toString() : string
Return values
stringgetOpcode()
public
getOpcode() : string
Return values
stringgetPayload()
public
getPayload() : string
Return values
stringgetPayloadLength()
public
getPayloadLength() : int
Return values
intisContinuation()
public
isContinuation() : bool
Return values
boolisFinal()
public
isFinal() : bool
Return values
boolstringable()
protected
stringable(string $format, mixed ...$values) : string
Parameters
- $format : string
- $values : mixed