Hacker News new | ask | show | jobs
by emilfihlman 35 days ago
It's so sad that node refuses to add websocket server support.

Adding websocket would simplify stuff tremendously, as well as make deployments much, much more secure.

1 comments

Why more secure?

I see that Deno has WebSockets, but I've never used them: https://docs.deno.com/api/web/~/WebSocket

Because it entirely removes dependency for external libraries and package repositories, like npm, for basic internet interoperability.

I (also) basically use only one package: ws.

"ws" is regularly the only package in my package.json
Same. Without that I could remove all npm dependence, which would greatly improve security.
If you're not tied to the ecosystem, why not switch to Deno?
Actually, maybe you are correct and I should.