Skip to content

How to implement with encoder/broadcaster for Websocket pub/sub? #3009

@Buuntu

Description

@Buuntu

I see https://github.com/encode/broadcaster mentioned a lot on here (as well as in the documentation) as a project to use for more complicated Websocket integration. However I haven't been able to find a single example of doing this - I think it would be super useful if there was a quick example in the documentation of how to plug it in.

Encoder is made for Starlette but I imagine it can easily be modified to work with FastAPI, though for someone who is not an expert in both it doesn't seem trivial. Especially once you want to add testing and more complex backends such as Redis.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions