Go app to broadcast messages to all connected web clients using SSE and Redis PubSub
Or:
- Install Redis - http://redis.io/download
go get github.com/runway7/satellite
TOKEN
: An authentication token that you'll use you broadcast a messageREDIS_URL
: The URL of your Redis installationREDIS_URL_KEY
: If you use a hosting provider that sets your Redis URL environment variable under another name, likeREDIGO_URL
, set this to the name of the variable.
Create a GET
request to /channel
Create a POST
request to /channel
with token
and message
as parameters values. Channels that do not exist are created on the fly.
Satellite app uses Strobe for channel fan-out, Redigo to pass messages between servers, and SSE for SSE formatting.