An open API service indexing awesome lists of open source software.

https://github.com/socketio/socket.io-compression-demo


https://github.com/socketio/socket.io-compression-demo

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Socket.IO Compression Demo

A demo which shows the savings for a realtime stream on Twitter.

## How to use
Please prepare a [Twitter access token](https://dev.twitter.com/oauth/application-only).

### Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

### Custom
Set the environment variables and start your server.

```sh
$ export TWITTER_CONSUMER_KEY=xxxxxxxxxx
$ export TWITTER_CONSUMER_SECRET=xxxxxxxxxx
$ export TWITTER_TOKEN=xxxxxxxxxx
$ export TWITTER_TOKEN_SECRET=xxxxxxxxxx
$ npm install
$ npm start
```

## License

MIT