mdasberg / ng-apimock

Node plugin that provides the ability to use scenario based api mocking: for local development for protractor testing
MIT License
99 stars 26 forks source link

Feature: allow mocking a web socket connection #41

Open bksantiago opened 6 years ago

bksantiago commented 6 years ago

Do you intend to support this in the near future?

mdasberg commented 6 years ago

Of course that would be an option. I will have to look into it. Do you have any implementation ideas?

basvermeulen commented 6 years ago

I needed websocket mocking functionality as well, so I forked this repo and added the functionality. I have to say, my implementation is quite quick and dirty still, but functions as a nice proof of concept.

Ideally I would like to integrate this in the new ng-apimock core branch. @mdasberg I you want, you can have a look at my implementation. The most interesting part I guess, is the test/mocks folder, the rest is just implementation detail.