Skip to content

radd/rtc-test-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time communication test client

This client application is use for testing communication methods:

  • HTTP Long Polling
  • Server-Sent Events
  • WebSocket
  • WebSocket + STOMP

See Server appliaction

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 STOMP

Architecture:

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

node runTest.js $1 $2 $3

Where:

  • $1 is number of tests
  • $2 is number of messages
  • $3 is payload size

Scenario II

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:

--------------------- T E S T ---------------------
clientCount: 100, msgCount: 10, msgSpan: 1000
9.627700000000003
7.657590000000003
7.584609999999998
7.298040000000003
8.2348
AVG: 8.080548

Releases

No releases published

Packages

No packages published