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:
Returns:

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary