anycable / anycable-go

AnyCable real-time server
https://anycable.io
MIT License
364 stars 65 forks source link

SSE support #187

Closed palkan closed 1 year ago

palkan commented 1 year ago

What is the purpose of this pull request?

This PR brings Server-Sent Events support to AnyCable making it possible to subscribe to Action Cable channel updates via EventSource or pure HTTP.

One of the primary use cases is to use Turbo Streams without Action Cable on the client side:

<turbo-stream-source src="http://localhost:8080/events?turbo_signed_stream_name=chat_1" />

What changes did you make? (overview)

Is there anything you'd like reviewers to focus on?

Checklist