SocketFactory
extends Factory
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- createClient() : mixed
Properties
$ws
protected
WS|null
$ws
Methods
__construct()
public
__construct([mixed $loop = null ][, mixed $resolver = null ][, WS|null $ws = null ]) : mixed
Parameters
- $loop : mixed = null
-
ReactPHP event loop; defaults to the global loop.
- $resolver : mixed = null
-
DNS resolver; when null, one is built from
$ws->data['dnsConfig']. - $ws : WS|null = null
-
Voice WebSocket, required when
$resolveris null and used to wire UDP sockets back to the gateway.
Tags
createClient()
public
createClient(mixed $address) : mixed
Parameters
- $address : mixed