Page 1 of 1

number of connected on a website

Posted: Wed Jun 16, 2021 1:49 am
by Webmaster78
-
-
hi,
How to be able to indicate the number of connected on the chat on a website ?

Thank you !
-
-

Re: number of connected on a website

Posted: Wed Jun 16, 2021 5:38 am
by PeGaSuS
Actually you can't, unless you make a custom module that counts the number of webirc/websockets connection.

Re: number of connected on a website

Posted: Wed Jun 16, 2021 7:23 am
by Syzop
k4be has a 3rd party module called third/wwwstats which you can see on https://modules.unrealircd.org/
His docs are here. You would still have to write some PHP code to connect to the socket, though, and it assumes you are running IRC and the website on the same machine etc.
He also has wwwstats-mysql, an unreleased module. Again, here too you will need to do write the PHP-side, but at least the IRC and website can run at two different machines.

Re: number of connected on a website

Posted: Wed Jun 16, 2021 11:34 am
by Webmaster78
-
-
Thank you so much.
-
-

Re: number of connected on a website

Posted: Wed Jun 16, 2021 10:49 pm
by CrazyCat
If you use services as anope, you can activate mysql db and query it.
Most of services now include mysql/mariadb support and let you have some stats