def each(&block)
      if WebsocketRails.synchronize?
        users_hash = Synchronization.all_users || return
        users_hash.each do |identifier, user_json|
          connection = remote_connection_from_json(identifier, user_json)
          block.call(connection) if block
        end
      else
        users.each do |_, connection|
          block.call(connection) if block
        end
      end
    end
def each(&block)
      if WebsocketRails.synchronize?
        users_hash = Synchronization.all_users || return
        users_hash.each do |identifier, user_json|
          connection = remote_connection_from_json(identifier, user_json)
          block.call(connection) if block
        end
      else
        users.each do |_, connection|
          block.call(connection) if block
        end
      end
    end
Behaves similarly to Ruby's Array#each, yielding each connection
 object stored in the {UserManager}. If synchronization is enabled,
 each connection from every active worker will be yielded.

 You can access the `current_user` object through the #user method.

 You can trigger an event on this user using the #send_message method
 which behaves identically to BaseController#send_message.

 If Synchronization is enabled, the state of the `current_user` object
 will be equivalent to it's state at the time the connection was opened.
 It will not reflect changes made after the connection has been opened.