Reader small image

You're reading from  Full Stack Web Development with Raspberry Pi 3

Product typeBook
Published inAug 2017
Reading LevelExpert
PublisherPackt
ISBN-139781788295895
Edition1st Edition
Languages
Right arrow
Author (1)
Soham Kamani
Soham Kamani
author image
Soham Kamani

Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Read more about Soham Kamani

Right arrow

Summary

We started out this chapter by looking at the current problems facing our application. Following this, we looked at how web sockets can solve our problem and found a fully featured implementation of web sockets in the socket.io library. The basics of socket.io were covered in addition to how it was going to work with the current application. We then went on to actually implementing the socket.io library in both the client-side as well as the server-side application code and finally inspected the network activity in both cases to observe the difference.

Although web sockets seem like a solution to all our problems, there are still some drawbacks that we should consider:

  • Web sockets are more resource-intensive compared to HTTP calls since each connection to the server is maintained as a separate instance and exists for as long as the client is active. HTTP calls, on the...
lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Full Stack Web Development with Raspberry Pi 3
Published in: Aug 2017Publisher: PacktISBN-13: 9781788295895

Author (1)

author image
Soham Kamani

Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Read more about Soham Kamani