test-socket-server

Test socket server that sends back variable framed random data

test-socket-server

A socket server for testing clients. Still a work-in-progress since i'll be adding to this as needed to test client functionality.

It expects the data to be sent in the following format:

frame_sizerpc iddata
3232ignored

And returns random data between 100 and 2048 bytes in the following format:

frame_sizerpc idrandom data
3232100-2048

Data is sent in Big-endian.

npm install test-socket-server

Use this to run some basic functional tests:

npm test

MIT License