Closed coolstar closed 7 years ago
On initial investigation, it appears the problem is with getting a cookie from the API with a BEARER token. It seems the cookie retrieved from the user+password login works but not the one with BEARER token :/
Issue filed at https://github.com/Gargron/mastodon/issues/331
Workaround implemented in d7dc8de398c01e290996f3a4ca4fce0d37ec3924. Grab the session cookie as well while the user is logging in, and use the cookie for streaming.
Streaming is now fully stable with the documented API. No session cookie is required anymore.
The Mastodon web client uses a WebSocket at https://mastodon.social/cable and uses cookies for authentication.
Code has been implemented that successfully gets the session cookie, sends it and opens a websocket; however the websocket is currently immediately terminated.