Giter Site home page Giter Site logo

satellite.old's Introduction

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.

satellite.old's People

Contributors

arpith avatar sudhirj avatar avinoth avatar

Watchers

 avatar James Cloos avatar  avatar

satellite.old's Issues

Message size and buffering

Since writes in the antenna need to be extremely fast, either limit message size to 4k minus padding or use a bytes.buffer to send messages, maybe drain on schedule in the for select.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.