22

I have used wiremock for testing http calls, but my current work requires websockets and I was wondering if anyone has found/used a library for standing up a localhost that will create a websocket connection that you can mock responses.

I have googled it but nothing seems to be a stand alone server, but yet just libraries that require you to add to the project. This will not work as I'm looking for something I can test across all mobile platforms/desktops.

Randy
  • 1,400
  • 2
  • 12
  • 30

1 Answers1

0

I don't know if it is also done in Java or not, but if you can use Node or run it in a container, take a look at https://github.com/thoov/mock-socket

mohamnag
  • 2,709
  • 5
  • 27
  • 40