- Converted
@clientsand@subscribersfrom instance vars to class vars - Added
@@mutex = Mutex.new(:unchecked)for all shared state access - All operations (broadcast_json, stats, subscribe, unsubscribe, add_client, remove_client, shutdown_all) now synchronize
- Fixed stats return type to
Hash(String, Int64)for BroadcasterStats compatibility