class ChannelConnection

Methods

__construct(Connection $connection, array $data = [])

Create a new channel connection instance.

connection()

Get the underlying connection.

mixed
data(string|null $key = null)

Get the connection data.

void
send(string $message)

Send a message to the connection.

mixed
__call(string $method, array $parameters)

Proxy the given method to the underlying connection.

string
id()

No description

string
identifier()

No description

app()

No description

void
ping()

No description

void
pong()

No description

static void
setLastSeenAt(int $time)

No description

static void
touch()

No description

void
disconnect()

No description

bool
isActive()

No description

bool
isInactive()

No description

bool
isStale()

No description

bool
usesControlFrames()

No description

static void
setUsesControlFrames(bool $usesControlFrames = 'true')

No description

void
terminate()

No description

void
control(int $opcode)

No description

Details

at line 35
__construct(Connection $connection, array $data = [])

Create a new channel connection instance.

Parameters

Connection $connection
array $data

at line 44
Connection connection()

Get the underlying connection.

Return Value

Connection

at line 52
mixed data(string|null $key = null)

Get the connection data.

Parameters

string|null $key

Return Value

mixed

at line 60
void send(string $message)

Send a message to the connection.

Parameters

string $message

Return Value

void

at line 68
mixed __call(string $method, array $parameters)

Proxy the given method to the underlying connection.

Parameters

string $method
array $parameters

Return Value

mixed

at line 30
string id()

No description

Return Value

string

at line 30
string identifier()

No description

Return Value

string

at line 30
Application app()

No description

Return Value

Application

at line 30
void ping()

No description

Return Value

void

at line 30
void pong()

No description

Return Value

void

at line 30
static void setLastSeenAt(int $time)

No description

Parameters

int $time

Return Value

void

at line 30
static void touch()

No description

Return Value

void

at line 30
void disconnect()

No description

Return Value

void

at line 30
bool isActive()

No description

Return Value

bool

at line 30
bool isInactive()

No description

Return Value

bool

at line 30
bool isStale()

No description

Return Value

bool

at line 30
bool usesControlFrames()

No description

Return Value

bool

at line 30
static void setUsesControlFrames(bool $usesControlFrames = 'true')

No description

Parameters

bool $usesControlFrames

Return Value

void

at line 30
void terminate()

No description

Return Value

void

at line 30
void control(int $opcode)

No description

Parameters

int $opcode

Return Value

void