h3poteto / megalodon

Fediverse API client library for node.js and browser
https://h3poteto.github.io/megalodon/
MIT License
250 stars 33 forks source link

Mastodon: Fix the trailing slash in the WebSocket URI #2159

Closed urmaul closed 8 months ago

urmaul commented 9 months ago

Remove the trailing slash in the Mastodon streaming URI to match the documentation.

Mastodon works in both cases (with and without the trailing slash). This change would fix connecting to GoToSocial that follows the documented Mastodon API more strictly.

More info on the problem here: https://github.com/superseriousbusiness/gotosocial/issues/2704

urmaul commented 9 months ago

~Looks like blob.cat is down and this is causing the test to fail.~