https://github.com/arpith/sse-test
Node app that creates SSE connections to a server and logs messages
https://github.com/arpith/sse-test
Last synced: 22 days ago
JSON representation
Node app that creates SSE connections to a server and logs messages
- Host: GitHub
- URL: https://github.com/arpith/sse-test
- Owner: arpith
- License: mit
- Created: 2015-05-26T05:12:20.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T08:12:05.000Z (almost 11 years ago)
- Last Synced: 2025-11-27T10:46:11.524Z (7 months ago)
- Language: JavaScript
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sse-test
Node app that creates SSE connections to a server and logs messages
## Installation
[](https://heroku.com/deploy)
OR
`$ npm install sse-test`
## Usage
```
$ export CLIENT_COUNT=100
$ export SATELLITE_URL=yourServerUrl
$ export TOKEN=authTokenForSatellite
$ babel-node main.js
```
## How it works
The app runs tests with `$CLIENT_COUNT` as the maximum number of SSE clients per test.
For each test, the app picks a random number of SSE clients and a message to be sent on a random channel. If all clients receive the message, it prints `WORKS` (or `FAIL`) and closes the clients.