0.0.8 • Published 5 years ago
ws-launch v0.0.8
WS Launch
A Web Socket Mock data launcher
Installation
To start the project,
npm installRun
npm startor with npx;
npx ws-launchSettings
| Settings | Default | Argument | Description |
|---|---|---|---|
| Port | 4000 | --port | On which port should it run |
| Data | {} | --data | Json string with data |
| File | '' | --file | Json file with data |
| Wait | 5000 | --wait | Wait in ms to fire the data |
| Open | false | --open | Keep the connection open |
If you want any other data, you can pass arguments like;
npm start -- --port=5000 --data=test.jsonInline data
You can use inline json data.
npx ws-launch --data="{}"Your json needs to be stringified and escaped.