Triggering hot deploys

One of the more frustrating things about developing mobile apps is that when you find a bug or have a new feature to implement, getting your new app into the hands of your users is not as simple as just deploying it, like you would in the web world. Both iOS and Android apps must undergo a review process, which means that you could potentially be waiting up to a week for your update to go live.

Fortunately, if we use JavaScript to write our applications, we will emit changes with Socket.IO whenever our code is updated. We can refresh the app in real time to reflect our new code.

How to do it…

To trigger a hot deploy in Cordova by using Socket.IO, follow these steps:

  1. First, we will create our Cordova app by running cordova create ...

Get Socket.IO Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.