https://github.com/socketio/socket.io-compression-demo
https://github.com/socketio/socket.io-compression-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/socketio/socket.io-compression-demo
- Owner: socketio
- Created: 2015-11-29T00:20:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T20:42:21.000Z (about 10 years ago)
- Last Synced: 2025-01-29T13:11:24.594Z (about 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 8
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
[](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