O'Reilly logo

Socket.IO Cookbook by Tyson Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required