def trigger_async(event_name, data, socket_id = nil)
      params = {}
      if socket_id
        validate_socket_id(socket_id)
        params[:socket_id] = socket_id
      end
      @client.trigger_async(name, event_name, data, params)
    end
def trigger_async(event_name, data, socket_id = nil)
      params = {}
      if socket_id
        validate_socket_id(socket_id)
        params[:socket_id] = socket_id
      end
      @client.trigger_async(name, event_name, data, params)
    end
Trigger event asynchronously using EventMachine::HttpRequest

 [Deprecated] This method will be removed in a future gem version. Please
 switch to Pusher.trigger_async or Pusher::Client#trigger_async instead

 @param (see #trigger!)
 @return [EM::DefaultDeferrable]
   Attach a callback to be notified of success (with no parameters).
   Attach an errback to be notified of failure (with an error parameter
   which includes the HTTP status code returned)
 @raise [LoadError] unless em-http-request gem is available
 @raise [Pusher::Error] unless the eventmachine reactor is running. You
   probably want to run your application inside a server such as thin