Skip to content

VoiceNetworkingOptions

Defined in: packages/voice/src/networking.ts:47

Options for VoiceNetworking.

optional dave?: boolean

Defined in: packages/voice/src/networking.ts:49

Offer DAVE (end-to-end encryption) when @snazzah/davey is installed. Default true. Discord requires it outside stage channels.


optional debug?: (message) => void

Defined in: packages/voice/src/networking.ts:56

string

void


optional socketFactory?: VoiceSocketFactory

Defined in: packages/voice/src/networking.ts:51

Opens the voice WebSocket (tests).


optional udpFactory?: UdpSocketFactory

Defined in: packages/voice/src/networking.ts:53

Opens the UDP socket (tests).


optional url?: string | ((endpoint) => string)

Defined in: packages/voice/src/networking.ts:55

Overrides the voice gateway URL built from the endpoint (tests): a URL, or a function of the endpoint.