Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Node.js for Mobile Application Development

You're reading from   Learning Node.js for Mobile Application Development Make use of Node.js to learn the development of a simple yet scalable cross-platform mobile application

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785280498
Length 248 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Preface 1. Setting Up Your Workspace FREE CHAPTER 2. Configuring Persistence with MongoDB 3. Creating an API 4. Securing Your Backend 5. Real-Time Data and WebSockets 6. Introducing Ionic 7. Building User Interfaces 8. Making Our App Interactive 9. Accessing Native Phone Features 10. Working with APIs 11. Working with Security 12. Working with Real-Time Data 13. Building an Advanced Chat App 14. Creating an E-Commerce Application Using the Ionic Framework Index

Creating a multiroom chat application

Let's take a brief refresher on the basic Chat App that we built during the course of the previous chapter:

Creating a multiroom chat application

This app effectively sets up a connection to the WebSocket server and lets us talk to random strangers who, for some reason, are loitering in the kitchen and using the Wi-Fi connection. What we want to do here is give these strangers (and ourselves) the possibility to pick separate chat rooms depending on what they are keen to talk about. Since we love programming, programming languages are of course going to be the be-all-and-end-all of what is on the menu.

Configuring the basic layout

In order to create a nice way to navigate between different chat rooms, we will use a tabbed layout, where each tab will correspond to a single chat room.

This means that we will need to make several changes to our HTML as well as the routing for our app. Start out by modifying the index.html file. Make sure that it looks like the following:

<!DOCTYPE html&gt...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image