How to mock websocket endpoints
Have you ever need to mock some sort of websocket endpoint during the early stage of development of an application? I do. I could easily mock REST apis with json-server, but then I had to wrote something allowing me to mock sokects also.
The result is ws-server-ftw (ws-server was taken on npm, uh). Let's start with a screencast...
Basically, ws-server-ftw provides a way to easily mock websocket endpoints, serving a json file or a js file exporting an object. Using ...