def _send_notification(self, uaid, node_id, notification):
    'Send a notification to a specific node_id\n\n        This version of the overriden method includes the necessary crypto\n        headers for the notification.\n\n        :type notification: autopush.utils.WebPushNotification\n\n        '
    payload = notification.serialize()
    payload['timestamp'] = int(time.time())
    url = ((node_id + '/push/') + uaid)
    request = self.agent.request('PUT', url.encode('utf8'), bodyProducer=FileBodyProducer(StringIO(json.dumps(payload))))
    request.addCallback(IgnoreBody.ignore)
    return request
Send a notification to a specific node_id

This version of the overriden method includes the necessary crypto
headers for the notification.

:type notification: autopush.utils.WebPushNotification
def _send_notification(self, uaid, node_id, notification):
    'Send a notification to a specific node_id\n\n        This version of the overriden method includes the necessary crypto\n        headers for the notification.\n\n        :type notification: autopush.utils.WebPushNotification\n\n        '
    payload = notification.serialize()
    payload['timestamp'] = int(time.time())
    url = ((node_id + '/push/') + uaid)
    request = self.agent.request('PUT', url.encode('utf8'), bodyProducer=FileBodyProducer(StringIO(json.dumps(payload))))
    request.addCallback(IgnoreBody.ignore)
    return request