Module: Lowdown::Connection::DelegateProtocol

Defined in:
lib/lowdown/connection.rb

Overview

This module describes the interface that your delegate object should conform to, but it is not required to include this module in your class, it mainly serves a documentation purpose.

Instance Method Summary collapse

Instance Method Details

#handle_apns_response(response, context:) ⇒ void

Note:

It is strongly advised that the delegate object is a Celluloid actor and that you pass in an async proxy of that object, but that is not required. If you do not pass in an actor, then be advised that the callback will run on this connection’s private thread and thus you should not perform long blocking operations.

This method returns an undefined value.

Called when a request is finished and a response is available.

Parameters:

  • response (Response)

    the Response that holds the status data that came back from the service.

  • context (Object, nil)

    the context passed in when making the request, which can be any type of object or an array of objects.

Raises:

  • (NotImplementedError)


305
306
307
# File 'lib/lowdown/connection.rb', line 305

def handle_apns_response(response, context:)
  raise NotImplementedError
end