GatewayCoordinatorHost
in
Narrow interface exposing WS capabilities required by GatewayCoordinator.
Implemented by WS.
Table of Contents
Methods
- closeConnection() : void
- Closes the underlying WebSocket connection.
- getDaveState() : State
- Returns the DAVE protocol state for this connection.
- getLogger() : LoggerInterface
- Returns the PSR-3 logger for this voice connection.
- getMaxDaveProtocolVersion() : int
- Returns the maximum DAVE protocol version supported at runtime.
- getVoiceClient() : VoiceClient
- Returns the VoiceClient associated with this connection.
- send() : void
- Sends a JSON voice payload over the voice WebSocket.
- sendDaveBinary() : void
- Sends a DAVE binary frame over the voice WebSocket.
Methods
closeConnection()
Closes the underlying WebSocket connection.
public
closeConnection() : void
getDaveState()
Returns the DAVE protocol state for this connection.
public
getDaveState() : State
Return values
StategetLogger()
Returns the PSR-3 logger for this voice connection.
public
getLogger() : LoggerInterface
Return values
LoggerInterfacegetMaxDaveProtocolVersion()
Returns the maximum DAVE protocol version supported at runtime.
public
getMaxDaveProtocolVersion() : int
Return values
intgetVoiceClient()
Returns the VoiceClient associated with this connection.
public
getVoiceClient() : VoiceClient
Return values
VoiceClientsend()
Sends a JSON voice payload over the voice WebSocket.
public
send(VoicePayload|array<string|int, mixed> $data) : void
Parameters
- $data : VoicePayload|array<string|int, mixed>
sendDaveBinary()
Sends a DAVE binary frame over the voice WebSocket.
public
sendDaveBinary(int $opcode[, string $payload = '' ]) : void
Parameters
- $opcode : int
- $payload : string = ''