Copyright | (c) Yuto Takano (2021) |
---|---|
License | MIT |
Maintainer | moa17stock@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
WARNING
This module is considered internal.
The Package Versioning Policy does not apply.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Description
This module provides launchWebsocket
, a function used to launch a websocket to
the Discord Voice Gateway, and perform necessary handshakes including
heartbeat setup, mode selection, and IP Discovery. The function will also set up
the UDP socket for voice data transmission by calling launchUDP
from the
Discord.Internal.Voice.UDPLoop module.
Synopsis
- launchWebsocket :: WebsocketLaunchOpts -> Chan Text -> IO ()
Documentation
launchWebsocket :: WebsocketLaunchOpts -> Chan Text -> IO () Source #
Attempt to connect (and reconnect on disconnects) to the voice websocket. Also launches the UDP thread after the initialisation.