\adminmatrix\swoole\websocket\socketioEnginePacket

Summary

Methods
Properties
Constants
__construct()
open()
pong()
ping()
message()
fromString()
toString()
$type
$data
OPEN
CLOSE
PING
PONG
MESSAGE
UPGRADE
NOOP
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

OPEN

OPEN = 0

Engine.io packet type `open`.

CLOSE

CLOSE = 1

Engine.io packet type `close`.

PING

PING = 2

Engine.io packet type `ping`.

PONG

PONG = 3

Engine.io packet type `pong`.

MESSAGE

MESSAGE = 4

Engine.io packet type `message`.

UPGRADE

UPGRADE = 5

Engine.io packet type 'upgrade'

NOOP

NOOP = 6

Engine.io packet type `noop`.

Properties

$type

$type

$data

$data

Methods

__construct()

__construct(mixed  $type, mixed  $data = '') : mixed

Parameters

mixed $type
mixed $data

Returns

mixed —

open()

open(mixed  $payload) : mixed

Parameters

mixed $payload

Returns

mixed —

pong()

pong(mixed  $payload = '') : mixed

Parameters

mixed $payload

Returns

mixed —

ping()

ping() : mixed

Returns

mixed —

message()

message(mixed  $payload) : mixed

Parameters

mixed $payload

Returns

mixed —

fromString()

fromString(string  $packet) : mixed

Parameters

string $packet

Returns

mixed —

toString()

toString() : mixed

Returns

mixed —