Skip to content

Websocket streaming (compat w/ GoToSocial) #432

@codl

Description

@codl

Mastodon effectively has two streaming APIs, the server-sent events endpoints at /api/v1/streaming/THING, and the websocket stream at wss://INSTANCE/api/v1/streaming. Mastodon.py only uses the SSE endpoints. However GoToSocial only implements the websocket stream, not SSE, so it's impossible to stream events with mastopy on a GTS server.

Also apparently the websocket stream can multiplex many event streams and that might be useful, idk, that's not what I'm personally interested in.

I fully get if this is out of scope, given that it involves probably pulling a new dependency to add support for a whole other protocol to improve not mastodon support in a project called mastodon.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions