Class/Object

ackcord.voice

VoiceWsHandler

Related Docs: object VoiceWsHandler | package voice

Permalink

class VoiceWsHandler extends Actor with Timers with ActorLogging

Responsible for handling the websocket connection part of voice data.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VoiceWsHandler
  2. ActorLogging
  3. Timers
  4. Actor
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VoiceWsHandler(address: String, serverId: RawSnowflake, userId: UserId, sessionId: String, token: String, sendTo: Option[ActorRef], soundProducer: Source[ByteString, NotUsed], soundConsumer: Sink[ReceivedData, NotUsed])(implicit mat: Materializer)

    Permalink

    address

    The address to connect to, not including the websocket protocol.

    serverId

    The serverId

    userId

    The client userId

    sessionId

    The session id received in ackcord.APIMessage.VoiceStateUpdate

    token

    The token received in ackcord.APIMessage.VoiceServerUpdate

    sendTo

    The actor to send all AudioAPIMessages to unless noted otherwise

    soundProducer

    A source which will produce the sound to send.

    soundConsumer

    A sink which will consume AudioAPIMessage.ReceivedData.

    mat

    The Materializer to use

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def active: Receive

    Permalink
  5. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  6. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Timers → Actor
  7. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Timers → Actor
  8. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Timers → Actor
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def becomeActive(): Unit

    Permalink
  12. def becomeInactive(): Unit

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  15. def createMessage: Flow[VoiceMessage[_], Message, NotUsed]

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def handleWsMessages: Receive

    Permalink

    Handles all websocket messages received

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def heartbeatTimerKey: String

    Permalink
  23. def inactive: Receive

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  26. implicit val mat: Materializer

    Permalink

    The Materializer to use

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def parseMessage: Flow[Message, Either[Error, VoiceMessage[_]], NotUsed]

    Permalink
  31. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. def postStop(): Unit

    Permalink
    Definition Classes
    VoiceWsHandler → Actor
  33. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  34. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  35. def receive: Receive

    Permalink
    Definition Classes
    VoiceWsHandler → Actor
  36. def restartLoginKey: String

    Permalink
  37. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  38. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  39. def stopOrGotoInactive(): Unit

    Permalink
  40. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. final def timers: TimerScheduler

    Permalink
    Definition Classes
    Timers
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def wsFlow: Flow[Message, Message, Future[WebSocketUpgradeResponse]]

    Permalink

    The flow to use to send and receive messages with

  49. def wsUri: Uri

    Permalink

Inherited from ActorLogging

Inherited from Timers

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped