fuck sockets, all my niggas query rest endpoints with setintervals

  • 3
    Socket.io sits in the corner, crying
  • 2
    On the other hand, fuck WS with its unreliability and OS specific edge cases.
  • 1
    @Lor-inc care to elab? I'm curious
  • 1
    @netikras On ffox, at least in July, when you put the machine into sleep mode the socket was silently forgotten in about a fourth of the cases. Haven't seen it since I switched to Linux.
  • 1
    @Ranchu sockets.io is actual trash lol. Massive amounts of overhead. Better to just directly interact with socket interfaces.

    Really want insane WebSocket performance? Go with uWebSockets.

    That said sockets.io does provide a ton of abstraction for quick development, but imo one should never use it in a production environment. It's way too costly.
  • 1
    @Tayo good to know, thanks
  • 0
    @Lor-inc Was that Windows or UNIX? OSX?

    by WS you mean a websocket, right? Not a WebService :) Since both abbreviations are the same and context is similar..

    Are there any articles/SO/other topics about this? Again, curious
  • 0
    @Tayo is it more costly than a rest loop every 0.5 second?
  • 0
    @jonhyfun no lol in that case go all for it
  • 0
    @netikras It's Windows, and I didn't find anything about it online.
Add Comment