DiscordUDP
DiscordUDP is an internal class responsible for managing UDP communication with the Discord API. This class handles sending and receiving UDP packets.
Properties
udpActive
 DiscordUDP.udpActive  ::  boolean 
publicUdp
 DiscordUDP.publicUdp  ::  Nstring 
onMessageRecv
onSocketDead
socketInstance
 DiscordUDP.socketInstance  ::  WebSocket 
reporter
 DiscordUDP.reporter  ::  Vendor.Console 
socketUrl
 DiscordUDP.socketUrl  ::  string 
socketActive
 DiscordUDP.socketActive  ::  string 
socketActiveChanged
socketThread
 DiscordUDP.socketThread  ::  thread? 
Methods
sendAsync
DiscordUDP : sendAsync () -> Vendor.Future
dataPacket: string
Sends a UDP packet asynchronously.
connectAsync
DiscordUDP : connectAsync () -> Vendor.Future
discordUdp: string
Connects to a UDP socket asynchronously.
disconnectAsync
DiscordUDP : disconnectAsync () -> Vendor.Future
closingCode: string
Disconnects from the UDP socket asynchronously.
Functions
new
DiscordUDP . new () -> ()
publicUdp: string
Creates a new instance of DiscordUDP.