Get Gateway#
-
ORCAcode discord_get_gateway(struct discord *client, struct sized_buffer *ret)#
Get a single valid WSS URL, which the client can use for connecting.
Note
This route should be cached, and only call the function again if unable to properly establishing a connection with the cached version
- Parameters:
client – the client created with discord_init()
ret – if successful, a sized_buffer containing the JSON response
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary