def trigger(channels, event_name, data, params = {})
      post('/events', trigger_params(channels, event_name, data, params))
    end
def trigger(channels, event_name, data, params = {})
      post('/events', trigger_params(channels, event_name, data, params))
    end
Trigger an event on one or more channels

 POST /apps/[app_id]/events

 @param channels [String or Array] 1-10 channel names
 @param event_name [String]
 @param data [Object] Event data to be triggered in javascript.
   Objects other than strings will be converted to JSON
 @param params [Hash] Additional parameters to send to api, e.g socket_id

 @return [Hash] See Pusher API docs

 @raise [Pusher::Error] Unsuccessful response - see the error message
 @raise [Pusher::HTTPError] Error raised inside http client. The original error is wrapped in error.original_error