the login libraries are basically this workflow (do all this with the same cookie):
- Grab the login page's HTML and find the fkey element
- Login to a site (the chat domain's parent) using credentials and grabbed FKEY
- Grab the chat page's HTML and find fkey
- POST the fkey to chat to "join yourself to a room" which returns a WebSockets URL
- Use said WS url to handle incoming chat messages