Reader small image

You're reading from  Websocket Essentials: Building apps with HTML5 websockets

Product typeBook
Published inMay 2015
Reading LevelBeginner
Publisher
ISBN-139781784396756
Edition1st Edition
Languages
Right arrow
Author (1)
Varun Chopra
Varun Chopra
author image
Varun Chopra

Varun Chopra has a lot of experience in the design and development of enterprise applications. He has worked as a consultant and has extensive experience in integrating different technologies. Besides his love of technology, he is also a singer and a guitarist and loves gadgets.
Read more about Varun Chopra

Right arrow

When to use?


WebSockets being a very powerful way of communication between the client and server, it is really useful for applications which need a lot of server interaction. As WebSockets gives us the benefit of real-time communication, applications that require real-time data transfer, like chatting applications, can leverage WebSockets. It is not only used for real-time communication but also for scenarios where we need only the server to push the data to the client.

The decision to use WebSockets can be made when we know the exact purpose of its usage. We should not use WebSockets when we just have to create a website with static pages and hardly any interaction. We should use WebSockets where the communication is higher in terms of data passing between the client and server.

There are many applications like stock applications where the data keeps updating in real time. Collaborative applications need real-time data sharing, such as a game of chess or a Ping-Pong game. WebSockets is majorly...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Websocket Essentials: Building apps with HTML5 websockets
Published in: May 2015Publisher: ISBN-13: 9781784396756

Author (1)

author image
Varun Chopra

Varun Chopra has a lot of experience in the design and development of enterprise applications. He has worked as a consultant and has extensive experience in integrating different technologies. Besides his love of technology, he is also a singer and a guitarist and loves gadgets.
Read more about Varun Chopra