Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radd/rtc-test-client
Real-time communication test client
https://github.com/radd/rtc-test-client
http-long-polling nodejs server-sent-events stomp websocket
Last synced: 3 days ago
JSON representation
Real-time communication test client
- Host: GitHub
- URL: https://github.com/radd/rtc-test-client
- Owner: radd
- Created: 2019-06-06T16:05:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T17:00:39.000Z (over 5 years ago)
- Last Synced: 2024-11-11T19:11:38.661Z (2 months ago)
- Topics: http-long-polling, nodejs, server-sent-events, stomp, websocket
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real-time communication test client
This client application is use for testing communication methods:
- HTTP Long Polling
- Server-Sent Events
- WebSocket
- WebSocket + STOMPSee [Server appliaction](https://github.com/radd/rtc-test-server)
## Outline
Test includes two scenarios:
### First scenario
First scenario tests HTTP and WebSocket protocol
Architecture:
### Second scenario
Second scenario tests methods:
- HTTP Long Polling
- Server-Sent Events
- WebSocket
- WebSocket with additional subprotocol STOMPArchitecture:
## Run test
**test1** folder refers to 1st scenario, **test2** to 2nd scenario.
Go to test1 or test2 folder, choose suitable methos and run **runTest.js**
### Scenario I
```bash
node runTest.js $1 $2 $3
```
Where:
- $1 is number of tests
- $2 is number of messages
- $3 is payload size### Scenario II
```bash
node runTest.js $1 $2 $3 $4
```
Where:
- $1 is number of tests
- $2 is number of clients
- $3 is number of messages
- $4 is time between send next message## Output
Test results are saved to **output.log** file
### Example for WebSocket:
```bash
--------------------- T E S T ---------------------
clientCount: 100, msgCount: 10, msgSpan: 1000
9.627700000000003
7.657590000000003
7.584609999999998
7.298040000000003
8.2348
AVG: 8.080548
```