• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Counting clients for all instances in an application

New Here ,
Oct 24, 2013 Oct 24, 2013

Copy link to clipboard

Copied

I have multiple instances in an application and want to count the number of connected clients in each instance, and then make this information available to all clients connected to the application, in ex. a SharedObject. This way I can sync on changes every time a client is connected or disconnected without havint to write externally to a php page, and then use a timer to get this information back to each client, this slows down the sql server when hundreds of users are connected to hundreds of instances.

Is there a equivalent function to application.clients.length for the application across all instances, or a way to make a SharedObject run "globally" on the application and not on each instance?

Views

299

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines