Socket.io Connected User Count

后端 未结 12 1004
有刺的猬
有刺的猬 2021-01-30 20:24

I finally got socket.io to work properly, but I have encountered a strange problem.

I am not sure if this is the best way, but I am using:

io.sockets.cli         


        
12条回答
  •  我在风中等你
    2021-01-30 21:24

    Also take a look into:

    io.sockets.manager.connected

    It's a clean list of key value pairs (socket id and connection state?)

提交回复
热议问题