To get started, you should have:
- A WebSocket URL, which is found from the API root.
- A valid session or bot token.
Begin by connecting to the server, once you're connected then you can send a Authenticate event to the server.
You should listen out for Error events to find out if your credentials are incorrect or if something goes wrong here.
The server will now start sending relevant events as they come in.
You should Ping the server every 10 to 30 seconds to prevent your connection being dropped.