2 ms·
You can use WebSockets with NodeJS; there's a variety of libraries for this, but (naturally) it's npm-hell; but I'm not aware of any easy-to-use WebSocket wrapp
by DaiPlusPlus 3y ago
You can use WebSockets with NodeJS; there's a variety of libraries for this, but (naturally) it's npm-hell; but I'm not aware of any easy-to-use WebSocket wrappers/adapter libraries like what SignalR is, but it's been a while since I looked.
SignalR's two main selling-points back-in-the-day (2014-ish) was its solid cross-browser support and how it abstracted over WebSockets, Comet, SSE, long-polling, et al - but it's 2024 now and everyone's on Chromium or WebKit, so cross-browser support is moot, and and WebSockets+SSE now covers all use-cases; so there's less going-for SignalR thesedays, and since the ASP.NET Core rewrite of SignalR it just doesn't scale as well on the client-side (as it no-longer multiplexes multiple Hub requests over a single connection, which is crazy... and HTTP/2+QUIC+3 doesn't really help, I find).
- Nullabillity 3y agoThat sounds a lot like socket.io?