satellite

command module
v0.0.0-...-21d86df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2016 License: GPL-3.0 Imports: 12 Imported by: 0

README

Satellite

Go app to broadcast messages to all connected web clients using SSE and Redis PubSub

Installation

Deploy

Or:

  1. Install Redis - http://redis.io/download
  2. go get github.com/runway7/satellite

Configuration

  1. TOKEN: An authentication token that you'll use you broadcast a message
  2. REDIS_URL: The URL of your Redis installation
  3. REDIS_URL_KEY: If you use a hosting provider that sets your Redis URL environment variable under another name, like REDIGO_URL, set this to the name of the variable.
Subscribe to a channel / Listen for messages

Create a GET request to /channel

Broadcast a message

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL