what does Connections mean in ACP?


  • In the ACP, I have the following data:

    21 users
    400 Guests
    437 Total
    186 Connections

    If I am right, 21 means registerd users, 400 guests are those who did not register, Total = users+Guests. But what does Connections mean?

  • NodeBB

    Connections is the number of websocket connections.


  • Hi Baris, Do it mean there are roughly 200 guests did not connect to our website?

  • Community Rep

    @sharonyue Hey Sharon, perhaps this will help:

    The WebSocket API (WebSockets)

    The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.

    Wikipedia - WebSocket

    WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.

    Maintaining persistent connection is far more efficient than setting up and tearing down tcp handshake a'la old skool http(s). Presuming you have some data to be pushing, e.g. status updates, etc.

    And ... wowzers... this is ugly.... Hmm.... I guess I need to set actual link in markdown to avoid the content prefetching?


  • @gotwf Hi... Sorry my major is not web language, so it is still difficult to understand. Let me put it more straightfoward, if I wanna know how many ppl are browing my website, which one is correct? Total or Connections? Thanks...

    Since two weeks ago I remember my website's guests are roughly 200, but these days it increased to roughly 400. I dont understand why

  • Community Rep

    @sharonyue said in what does Connections mean in ACP?:

    Since two weeks ago I remember my website's guests are roughly 200, but these days it increased to roughly 400. I dont understand why

    Seems you are ultimately interested in what/who is connecting, no? Need some web log analysis for that, e.g. Matomo or Goog Analytics. Maybe a surge in bot activity?

  • NodeBB

    Those values are all calculated from socket.io. https://github.com/NodeBB/NodeBB/blob/master/src/socket.io/admin/rooms.js#L133-L135

    So the last value is the total number of socket connections, for example a registered user can open open 20 tabs and it would add 20 to connections value but only 1 to users value.

    Not sure why your connections is low it should usually be equal to Total or greater since users can have multiple tabs open.


  • Thank you guys. My connections number is quite stable around 200 this year. But the guest number these days suddenly incresed to roughly 400. Previously Guest number is no more than 200. If there is something wrong, I think it should be Guest's number.

    BTW, I just updated to v1.18.6. Before I updated, I never saw so high Guest number. But I am not sure if it is because of tue upgrade. My website works well except this.


    Alright, after I restart the nodebb real quick, Guest number decrease to 150. I dont know why.


Suggested Topics

  • 1
  • 5
  • 4
  • 6
  • 4
| |