PacketSender
in
Table of Contents
- close() : void
- Closes the channel, terminating the connection.
- send() : void
- Pushes a packet into the channel to be processed.
Methods
close()
Closes the channel, terminating the connection.
public
close([string $reason = "unknown reason" ]) : void
Parameters
- $reason : string = "unknown reason"
Return values
void —send()
Pushes a packet into the channel to be processed.
public
send(string $payload, bool $immediate) : void
Parameters
- $payload : string
- $immediate : bool