Can I create a websocket server using JavaScript (client-side)? -


this question has answer here:

i have seen websockets reference mdn article says

websocketserver

used opening new websocket server. required information (port, origin, location).

then, mean can create websocket server client-side?

if that's it, mean can turn this... (each arrow websocket connection)

enter image description here

...into this?

enter image description here

but, browsers have power of doing without router/firewall configuration?

and how can use it? websocketserver link broken. , have tried searching haven't found anything.

it looks websocketserver under development mozilla without support or of like. searched through of repositories , couldn't find references, except in testing code normal websockets.

if you're looking form of p2p websockets, don't think that's possible without work right now. need, others have said, server endpoint connection, popularly implemented in languages python , node.js


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -