class WebsocketPayload

Class WebsocketPayload

Constants

OPCODE_CONTINUE

OPCODE_TEXT

OPCODE_BINARY

OPCODE_NON_CONTROL_RESERVED_1

OPCODE_NON_CONTROL_RESERVED_2

OPCODE_NON_CONTROL_RESERVED_3

OPCODE_NON_CONTROL_RESERVED_4

OPCODE_NON_CONTROL_RESERVED_5

OPCODE_CLOSE

OPCODE_PING

OPCODE_PONG

OPCODE_CONTROL_RESERVED_1

OPCODE_CONTROL_RESERVED_2

OPCODE_CONTROL_RESERVED_3

OPCODE_CONTROL_RESERVED_4

OPCODE_CONTROL_RESERVED_5

Methods

$this
setFin(mixed $fin)

No description

int
getFin()

No description

$this
setRsv1(mixed $rsv1)

No description

int
getRsv1()

No description

$this
setRsv2(mixed $rsv2)

No description

int
getRsv2()

No description

$this
setRsv3(mixed $rsv3)

No description

int
getRsv3()

No description

$this
setOpcode(mixed $opcode)

No description

mixed
getOpcode()

No description

$this
setMask(mixed $mask)

No description

int
getMask()

No description

int
getLength()

No description

$this
setMaskKey(mixed $maskKey)

No description

mixed
getMaskKey()

No description

$this
setPayload(mixed $payload)

No description

mixed
getPayload()

No description

string
generateMaskKey()

No description

int|string
encodePayload()

No description

static string
generateClosePayload()

No description

string
maskData(mixed $data, mixed $key)

No description

Details

at line 39
$this setFin(mixed $fin)

Parameters

mixed $fin

Return Value

$this

at line 49
int getFin()

Return Value

int

at line 58
$this setRsv1(mixed $rsv1)

Parameters

mixed $rsv1

Return Value

$this

at line 68
int getRsv1()

Return Value

int

at line 77
$this setRsv2(mixed $rsv2)

Parameters

mixed $rsv2

Return Value

$this

at line 87
int getRsv2()

Return Value

int

at line 96
$this setRsv3(mixed $rsv3)

Parameters

mixed $rsv3

Return Value

$this

at line 106
int getRsv3()

Return Value

int

at line 115
$this setOpcode(mixed $opcode)

Parameters

mixed $opcode

Return Value

$this

at line 125
mixed getOpcode()

Return Value

mixed

at line 134
$this setMask(mixed $mask)

Parameters

mixed $mask

Return Value

$this

at line 147
int getMask()

Return Value

int

at line 155
int getLength()

Return Value

int

at line 164
$this setMaskKey(mixed $maskKey)

Parameters

mixed $maskKey

Return Value

$this

at line 174
mixed getMaskKey()

Return Value

mixed

at line 183
$this setPayload(mixed $payload)

Parameters

mixed $payload

Return Value

$this

at line 193
mixed getPayload()

Return Value

mixed

at line 201
string generateMaskKey()

Return Value

string

at line 211
int|string encodePayload()

Return Value

int|string

at line 246
static string generateClosePayload()

Return Value

string

at line 264
string maskData(mixed $data, mixed $key)

Parameters

mixed $data
mixed $key

Return Value

string