\Psc\Library\Net\WebSocketWebSocket

Summary

Methods
Properties
Constants
getInstance()
connect()
server()
No public properties found
No constants found
No protected methods found
$instance
N/A
No private methods found
No private properties found
N/A

Properties

Methods

getInstance()

getInstance() : static

Returns

static —

connect()

connect(string  $address, int|float  $timeout = 10, mixed|null  $context = null) : \Psc\Library\Net\WebSocket\Client\Connection

Parameters

string $address
int|float $timeout
mixed|null $context

Returns

\Psc\Library\Net\WebSocket\Client\Connection —

server()

server(string  $address, mixed  $context) : \Psc\Library\Net\WebSocket\Server\Server

Parameters

string $address
mixed $context

Returns

\Psc\Library\Net\WebSocket\Server\Server —