coolstar / Capella

Capella social media client for Mastodon
GNU General Public License v3.0
24 stars 2 forks source link

Replace auto-refresh with full streaming support #4

Closed coolstar closed 7 years ago

coolstar commented 7 years ago

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.

coolstar commented 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 :/

coolstar commented 7 years ago

Issue filed at https://github.com/Gargron/mastodon/issues/331

coolstar commented 7 years ago

Workaround implemented in d7dc8de398c01e290996f3a4ca4fce0d37ec3924. Grab the session cookie as well while the user is logging in, and use the cookie for streaming.

coolstar commented 7 years ago

Streaming is now fully stable with the documented API. No session cookie is required anymore.