You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2018. It is now read-only.
ileitch edited this page Jan 31, 2013
·
1 revision
The embedding API allows you to start Rapns within an existing process. Calling Rapns.embed will start Rapns in a thread. Rapns will attach an at_exit hook to perform a graceful shutdown. If you need to manually shutdown Rapns you can call Rapns.shutdown.
The embedding API also provides Rapns.sync for synchronizing apps (aka Hot App Updates).
Please note that only a single instance of Rapns should ever be running per Rails environment. If you deploy multiple instances of your application and intend to start Rapns within one of those instances, you will need to ensure only a single instance spawns Rapns.