andreialecu / node-apn-http2

Communicate with Apple Push Notification Service via native Node.js v8.8.1+ HTTP2 module (node-apn drop-in)
MIT License
27 stars 10 forks source link

Initialize session connection without sending any notifications #12

Open bfelbo opened 4 years ago

bfelbo commented 4 years ago

We use this library on AWS Lambda and need it to be fast even for a single push as we use it for VoIP functionality. One issue we’re facing is that it takes substantial time to setup the session connection.

We have dedicated lambda warming functionality, where we’d love to include setting up this connection. Could you expose https://github.com/andreialecu/node-apn-http2/blob/master/src/APNPushProvider.ts#L59 so that it can be initialized without sending a push?