walkor / GatewayWorker

Distributed realtime messaging framework based on workerman.
MIT License
1.01k stars 294 forks source link

Question :- Total number of connections per gateway and business worker #94

Open abhinavgmfs opened 2 years ago

abhinavgmfs commented 2 years ago

Hi Walkor,

How can we find out how many clients are connected to each Gateway and Business Worker.

Thanks Abhinav

abhinavgmfs commented 2 years ago

I tried Gateway::getAllClientIdCount() but it giving me the all gateways connections count

nskushwah commented 2 years ago

Hi Walkor,

I also need the answer.

walkor commented 2 years ago

There is no such api and business worker not hold any client connections.

abhinavgmfs commented 2 years ago

Ok. Actually I am working on system monitor to show the number of connection in each gateway. So how can we get the number of connection in each gateway.

walkor commented 2 years ago

You can refer to Gateway::getAllClientIdCount to implement the interface you need.