discord-haskell-voice-2.3.1: Voice support for discord-haskell.
Copyright(c) Yuto Takano (2021)
LicenseMIT
Maintainermoa17stock@gmail.com
Safe HaskellNone
LanguageHaskell2010

Discord.Internal.Voice.WebsocketLoop

Description

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

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.