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.
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
8 sections • 49 lectures • 4h 11m total length
Creating HTTP Server
Creating HTML file and preparing code
Connection to Socket.IO Server from Client side
Emitting first Events
Creating Introduction Page
Adding Event Listener for Name Input
Creating chat page and adding event listener for button
Adding logic to change active page for chat
Creating Group Chat Box in HTML
Fixing bug with position of elements
Creating Group Chat Message in HTML code
Event Listener for New Message Input
Creating Socket.IO Handler
Emitting an Event to Server with Group Chat Message
Broadcast - emitting Event to all users except user who emitted an Event
Broadcasting an Event to all users
Appending Group Chat Messages
Saving connected users details in Server
Emitting and Event with User details to Server and testing
Broadcasting event about connected users
Creating Chat Boxes for connected peers
Saving information in store about created Chat Boxes
Adding logic to render only Chat Boxes for new users
Emitting Direct Message to Server
Emitting Direct Message From Server to Client
Appending direct chat messages
Fixing bug and testing our application
Removing direct Chat Boxes if user will disconnect
Adding possibility to choose room we would like to join
Joining Socket.IO Room
Creating Room Chat Box
Emitting an event to users which joined specific Room
My main goal is to improve as a developer and share my knowledge. I am working as full stack web developer and my main interests are programming and boxing. I like learning new stuff and programming makes me happy when I can share my knowledge.
I will do my best to show you how you can create amazing apps.