Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket URL may be redirected for stability reasons #1389

Open
andypiper opened this issue Jan 11, 2024 · 0 comments
Open

WebSocket URL may be redirected for stability reasons #1389

andypiper opened this issue Jan 11, 2024 · 0 comments
Assignees
Labels
admin Managing a Mastodon instance API The Mastodon core API

Comments

@andypiper
Copy link
Sponsor Member

Per this conversation on Mastodon.

https://oisaur.com/@renchap/111739587756391314

I need to dig the WebSocket URL for streaming updates from the instance info because it's on a different hostname from the rest of the API, which the API docs don't mention as a possibility.
"This should be in the docs (and the "usual" endpoint should redirect to the new URL).
This is not specific to mastodon.social, a few "large" servers are using this feature to be able to have DDOS protection / CDN on the main domain with providers that do not support Websockets."
"which reminds me, the docs say the relevant URL is at Instance.configuration.urls.streaming_api https://docs.joinmastodon.org/entities/Instance/#streaming_api but I found it at Instance.urls.streaming_api on all the masto instances I'm testing on."

Relates to #1237

@andypiper andypiper added API The Mastodon core API admin Managing a Mastodon instance labels Jan 11, 2024
@andypiper andypiper self-assigned this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Managing a Mastodon instance API The Mastodon core API
Projects
None yet
Development

No branches or pull requests

1 participant