Create Deno Real Time Chat in a very simple way
Create Real-Time Chat System using #Deno #WebSocket
Let's see who is joined or who left
Real-Time Message and Registration system
Join Deno Progressive Course https://bit.ly/deno-course
Let's discuss more on twitter, follow me http://twitter.com/Sarthaksavvy
Uniqueness of this course
1 Using vanilla Javascript
2 HTTP server and WebSocket server on same port (localhost:8080)
3 Refactoring code to make it managable
4 Extreamly easy way of explaining concepts
How this tutorial is different
There are many blog post and tutorials out there for #deno websocket real time chat system
But this is a simple video of about 2 hours and explained each and every bit of websocket in full details.
So even if you don't know websocket, you will become confident on this.
Module Used
- WebSocket module https://deno.land/std/ws
- Http Server Module https://deno.land/std/http
What if you want to use WebSocket with oak framework of deno
Here is a progressive course on Deno https://bit.ly/deno-course , where
- we will create WebSocket using OAK framework
- using vuejs to handle frontend part
- storing chat data into mongodb database
- using registered user only to enter chat room
dev.to people get a discount of 30% using coupon DENO-DEV.TO-30
Here is the list of topic we will cover in this tutorial
- Intro to websocket
- Setup WebSockets
- Close WebSocket Connection
- Getting Data from WebSocket
- Talk to Different Websocket
- Broadcast to others only
- Handle Http Connections
- http and ws on same route
- Send Event from html file
- Send Json in event
- Register with name
- Create Join Event
- Show Joined User
- Show all Online Users
- Create User leave event
- Remove leaved user
- Handle Closed Connection
- Refactor Main file
- Display User Name
- Real Time Chat
- Message From You
I hope this will help you to get started with Deno
Any suggestions or comments are most welcome.
Top comments (0)