F
F
facir2015-06-02 12:40:13
JavaScript
facir, 2015-06-02 12:40:13

How to get the number or list of channels in nginx?

Good afternoon, dear
Recently, I smoked mana on nginx, like a comet server, I wanted to make a mini-chat
I figured out how to listen to the channel and send messages there, everything works, everything is fine
Interested in this:
For example, 5 people visited the site, 5 channels were created respectively with a unique number that users listen to (where you can send messages)
how can you find out the number of connected people at the moment, what channels they listen to and whether they listen at all?
I see an option like this:
- when you enter the site, the channel number is written to the database and the online status is assigned, and with ajax, you can already check the activity, if there was no mouse movement for 60 seconds, then change the status in the database to offline, or when the page is closed do the same.

Is it possible to somehow monitor the number of channels and their numbers using nginx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sasah, 2015-06-08
@sasah

Possibly this module: https://github.com/vozlt/nginx-module-vts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question