Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Socket.IO Practical Bootcamp - Quick Start for Beginners
Highest Rated
Rating: 4.5 out of 5(49 ratings)
810 students

Socket.IO Practical Bootcamp - Quick Start for Beginners

Learn Socket.IO basics creating simple chat app and play around with Events and JavaScript.
Last updated 7/2021
English

What you'll learn

  • SocketIO basics
  • Emitting Events
  • Listening for Events
  • Broadcast
  • SocketIO Rooms
  • Emitting directly events to one user
  • Store active sessions is server side
  • Manage HTML code using JavaScript
  • Create HTML elements with JavaScript
  • Create SocketIO connection
  • Create HTTP Server
  • Basics about Namespaces

Course content

8 sections49 lectures4h 11m total length
  • Introduction0:31

    Learn the basics of real-time communication with Socket.IO to build a simple chat application and web games, with a QuickDraw introduction and practical examples.

  • What is Socket.IO ?1:37

    socket io enables bidirectional communication between the browser and the server, with the server pushing data and clients emitting events to the server or connected users, built on web sockets.

  • What is WebSocket ?0:50

    Explore what the WebSocket is, how it enables bidirectional, persistent client-server communication until one side terminates, and distinguish it from Socket.IO’s WebSocket-based approach.

  • Differences between Socket.IO and WebSockets1:49

    Compare socket.io and WebSocket differences, highlighting broadcast to all connected users, ease of use, scalability, automatic reconnection, and fallback support when websockets aren’t available.

  • Chat app with HTTP1:52

    Learn to build a chat app with http by sending post requests and polling the server for new messages, and see why http isn't ideal for real-time emission.

  • Chat app with Socket.IO2:44

    Build a real-time chat with socket.io by connecting clients to a server, emitting and listening for chat events, and broadcasting messages to all connected users or room members, with validation.

  • What we will cover in the course ?1:57

    Explore setting up an http server, connecting to socket.io, and enabling bidirectional client-server communication in rooms. Introduce namespaces and vanilla JavaScript UI to build a simple chat app.

Requirements

  • JavaScript basic knowledge

Description

Learn Socket.IO basics and be prepared for more advanced courses with real life usage of Socket.IO.

Socket.IO
is a library that enables real-time, bidirectional and event-based communication between the browser and the server. It is perfect solution if you are planning to build real time communication applications like chat, games apps etc. where most important thing is real time functionality.

The best way to learn Socket.IO is to create simple app where you will play with events, create listeners, and manage active sessions.

We will learn also how to work with JavaScript arrays (spread operator, filter, find methods etc.). We will manage our Client side UI with JavaScript and HTML and we will create element dynamically.

CSS styles will be provided to not loss time of styling the app as our main concern is to learn Socket.IO.

We will start with creating http server which we will connect with Socket.IO. At the next step we will prepare our playground in HTML. After that we will be ready to start learning Socket.IO. We will cover broadcast, store active session at server side, emit an events, listen for events, create rooms, emit an events to specific clients and rooms.

We will be not covering advanced concepts like:

Adapters which are needed if we can have multiple instances of our server (It will be covered in other course with real apps where we will be using Socket.IO)

Validation - Also they will be covered in more advanced courses where we will need to spread our Socket.IO logic.

Who this course is for:

  • Students which would like to learn basics about SocketIO