disco.voice.client

Constants

VoiceState = Enum(
  DISCONNECTED = 0,
  RECONNECTING = 1,
  AWAITING_ENDPOINT = 2,
  AUTHENTICATING = 3,
  AUTHENTICATED = 4,
  CONNECTING = 5,
  CONNECTED = 6,
  VOICE_CONNECTING = 7,
  VOICE_CONNECTED = 8)

Classes

VoiceException

Inherits From Exception

Functions

init(self, msg, client)

VoiceClient

Inherits From LoggingClass

Functions

init(self, channel, encoder, max_reconnects=5)

repr(self)

set_state(self, state)

_connect_and_run(self)

_heartbeat(self, interval)

set_speaking(self, value)

send(self, op, data)

on_voice_hello(self, data)

on_voice_ready(self, data)

on_voice_resumed(self, data)

on_voice_sdp(self, sdp)

on_voice_server_update(self, data)

on_message(self, msg)

on_error(self, err)

on_open(self)

on_close(self, code, reason)

connect(self, timeout, mute=False, deaf=False)

disconnect(self)

send_frame(self,*args,**kwargs)

increment_timestamp(self,*args,**kwargs)

results matching ""

    No results matching ""