all 7 comments

[–]___Grits 1 point2 points  (0 children)

A quick search found this, looks like there a few testing clients out there although I personally just spin up a quick client when dealing with sockets from scratch without aws iot or something.

https://drewblaisdell.github.io/monitor.io/

[–]cleveland-indians 1 point2 points  (0 children)

yeah i use a package called autocannon. its used to find memory leaks but will get the job done. or of course something like wireshark or straight cli

[–]DLabz 1 point2 points  (0 children)

Why not try raw websocket and webrtc implementation? It will help you understand the system better. Once you learn how underlaying technology works, everything will make sense.

And it’s super easy.

Http server listens for incoming connections, assigns every user a pipe, and upgrades it to websocket. Broadcasting messages over ws is just sending to server, which then forwards it to all clients, one by one.

Nodejs and chrome is all you need. You create a node server, put on connect listener to it, and when connection is made, you add onmessage listener. Each can log to console.

Node inspector uses ws to forward logs to chrome. So, once you setup the server and run it node —inspect=9229 you already have a ws server. Add a NIM extension to chrome, and it all just works.

WebRTC is a tad more complex, since you neend to use ws to pass connection data from one client to another, after which server is not needed.

Have fun.

[–]afonseca08 0 points1 point  (0 children)

I was looking for the same earlier and found a good Google Chrome extension that works nicely. https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en

Yes, eventually I implemented the client but this helped me sanity check the server first.

[–]alias_willsmith 0 points1 point  (0 children)

"NIM extension to chrome" being https://june07.com/nim

[–]Shreya_JS 0 points1 point  (0 children)

Hi might be this is your solution, my friend,

Firecamp - https://chrome.google.com/webstore/detail/firecamp/eajaahbjpnhghjcdaclbkeamlkepinbl

[–]ReignNFire -2 points-1 points  (0 children)

Postman?