DiscordPHP-Voice Documentation

GatewayCoordinatorHost

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

getLogger()

Returns the PSR-3 logger for this voice connection.

public getLogger() : LoggerInterface
Return values
LoggerInterface

getMaxDaveProtocolVersion()

Returns the maximum DAVE protocol version supported at runtime.

public getMaxDaveProtocolVersion() : int
Return values
int

sendDaveBinary()

Sends a DAVE binary frame over the voice WebSocket.

public sendDaveBinary(int $opcode[, string $payload = '' ]) : void
Parameters
$opcode : int
$payload : string = ''
On this page

Search results