Web Sockets server side implementation for NodeJS

前端 未结 2 1481
栀梦
栀梦 2021-01-13 10:41

Part of this problem might be that there\'s too much discussion on the client side for me to see wood for the trees.

Anyway, here\'s what I want to do. I need a plat

2条回答
  •  天涯浪人
    2021-01-13 11:25

    I had the exact same problem that you're facing at the moment when I tried to use Socket.IO on a different platform without a direct port of the client (and without the motivation to port it myself).

    I ended up moving my code to use ws which is a standards based websocket implementation for node without the added sugar from socket.io.

    It works extremely well in my case over several different platforms but you would need to rework most of the connection/reconnection code etc.

    Website : link

    GitHub : link

    NPM : npm install ws

提交回复
热议问题