How to get the online peers connected to my server at specific time

315 views
Skip to first unread message

Yaqoob Khan

unread,
Jan 12, 2015, 3:11:05 AM1/12/15
to pee...@googlegroups.com
Hello, 
I want to know that how may i get the numbers of online peers connected to my custom server, please help 

Christopher Reid

unread,
Jan 21, 2015, 8:55:06 PM1/21/15
to pee...@googlegroups.com
var users = 0

on connect... users += 1

on disconnect... users -= 1

You could then set up an API end point to serve this value from a URL... 

Luiz Gabriel Parreira Pereira

unread,
May 31, 2015, 4:14:15 PM5/31/15
to pee...@googlegroups.com
Hi, you can get user using this: peer.listAllPeers(function(){some code here});
Reply all
Reply to author
Forward
0 new messages