Create Real-Time Chat System using Deno WebSocket
Let’s see who is joined or who left
Real-Time Message and Registration system
Chapters:
- (00:00) Intro to WebSocket
- (01:20) Setup WebSockets
- (14:26) Close WebSocket Connection
- (17:03) Getting Data from WebSocket
- (21:18) Talk to Different Websocket
- (28:22) Broadcast to others only
- (32:57) Handle Http Connections
- (40:20) HTTP and ws on the same route
- (46:27) Send Event from Html file
- (52:46) Send Json in event
- (56:58) Register with name
- (01:03:52) Create Join Event
- (01:09:44) Show Joined User
- (01:13:01) Show all Online Users
- (01:17:51) Create User leave event
- (01:23:07) Remove leaved user
- (01:26:17) Handle Closed Connection
- (01:30:11) Refactor Main file
- (01:39:08) Display User Name
- (01:46:40) Real-Time Chat
- (01:53:45) Message From You
Useful Links:
Docs: https://deno.land/
Source Code: https://github.com/bitfumes/deno-js-with-mongodb-course
Deno Modules Used:
Oak Middleware Framework https://deno.land/x/oak
Encrypt Password https://deno.land/x/bcrypt
Generate JWT Token https://deno.land/x/djwt
Mongo DB Driver https://deno.land/x/mongo
#deno #node #websocket #web-development #developer