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

Do it yourself


This application is a very simple and easy-to-build application. We have seen how to create a simple application with some limited features. Many additions can be added to this application to make it more powerful. Let's give you some tips and information on features that you can develop.

User registration

Whenever the user opens the URL, a log-in/sign-up dialog box will open. User details such as his/her name will be displayed in the top-left corner of the screen.

Tip

This scenario will need a database connection. There are some databases available which can be easily connected to our Node.js server, such as MongoDB. I will leave its method of implementation to you. For help in connecting Node.js and MongoDB, visit http://mongodb.github.io/node-mongodb-native/.

The list of users

Make a button which will show you a list of users that are currently online. This scenario needs code changes both on the client as well as the server side. Let me list down some key points that you need...

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