yxorP Documentation

websocket
in package
implements protocolInterface

Interfaces, Classes, Traits and Enums

protocolInterface

Table of Contents

BINARY_TYPE_ARRAYBUFFER  = "\x82"
BINARY_TYPE_BLOB  = "\x81"
dealHandshake()  : mixed
decode()  : string
encode()  : string
input()  : mixed

Constants

BINARY_TYPE_ARRAYBUFFER

public mixed BINARY_TYPE_ARRAYBUFFER = "\x82"

BINARY_TYPE_BLOB

public mixed BINARY_TYPE_BLOB = "\x81"

Methods

dealHandshake()

public static dealHandshake(mixed $buffer, tcpConnection $connection) : mixed
Parameters
$buffer : mixed
$connection : tcpConnection
Return values
mixed

decode()

public static decode(mixed $buffer, connectionInterface $connection) : string
Parameters
$buffer : mixed
$connection : connectionInterface
Return values
string

encode()

public static encode(mixed $buffer, connectionInterface $connection) : string
Parameters
$buffer : mixed
$connection : connectionInterface
Tags
throws
Exception
Return values
string

input()

public static input(mixed $buffer, connectionInterface $connection) : mixed
Parameters
$buffer : mixed
$connection : connectionInterface
Return values
mixed

Search results