Sender
class Sender
Properties
| protected Server|null | $server |
Methods
Proxy push or disconnect calls to the Swoole server.
Proxy a method call to the Swoole server for a specific file descriptor.
Check if a file descriptor has an active WebSocket connection.
Validate and extract the file descriptor and method name from a proxy call.
Get the Swoole server instance.
Send a pipe message to all other workers.
No description
No description
Details
at line 25
__construct(Container $container)
No description
at line 32
bool
__call(string $name, array $arguments)
Proxy push or disconnect calls to the Swoole server.
at line 51
bool
pushFrame(int $fd, FrameInterface $frame)
Push a WebSocket frame to a file descriptor.
at line 67
bool|null
proxy(int $fd, string $method, array $arguments)
Proxy a method call to the Swoole server for a specific file descriptor.
at line 79
bool
check(int $fd)
Check if a file descriptor has an active WebSocket connection.
at line 95
array
getFdAndMethodFromProxyMethod(string $method, array $arguments)
Validate and extract the file descriptor and method name from a proxy call.
at line 107
protected Server
getServer()
Get the Swoole server instance.
at line 121
protected bool
sendPipeMessage(string $name, array $arguments)
Send a pipe message to all other workers.
at line 21
bool
push(int $fd, Frame|string $data, int $opcode = '1', int $flags = '1')
No description
at line 21
bool
disconnect(int $fd, int $code = '1000', string $reason = '\'\'')
No description