Book Image

Websocket Essentials: Building apps with HTML5 websockets

By : Varun Chopra
Book Image

Websocket Essentials: Building apps with HTML5 websockets

By: Varun Chopra

Overview of this book

Table of Contents (13 chapters)
WebSocket Essentials – Building Apps with HTML5 WebSockets
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
6
Enhancing HTML5 Web Application Development Using Modern Tools
Index

Do it yourself


It's time to do it yourself: creating an application for a mobile device is as easy as it is for the desktop. Now let's transform some of our applications for mobile.

Scenario 1

As we have developed a presentation sharing and drawing application, we will now make them available for mobile as well.

Tip

This is a very easy task: as we know, we just have to change the server so that it provides the client application and we are good. The reason that we don't have to change anything else is that the libraries we have used for the application are so well-written that they can adapt to the mobile view as well. Just try it out.

Here is how it will look when you open the presentation sharing application on mobile:

Scenario 2

The server is going to be the same, but you can play around with the client application interface to make it responsive as per the device screen size, which can be achieved using Bootstrap-like libraries. And for real-time data transfer, you can use the Socket.IO API...