Coding a Simple WebSocket Server in Node.js that Scales!

  Рет қаралды 21,245

Covalence

Covalence

Күн бұрын

Пікірлер: 39
@artemmalikov2658
@artemmalikov2658 15 күн бұрын
The best WebSocket tutorial I've found. This video is so underrated.
@dashaxedit
@dashaxedit Жыл бұрын
We need more of the websocket lessons. Thank you, really apppreciate it. So much production-related use cases we are in demand of. Please make more videos! For example, how to send messages in controllers, how to separate websocket, how to authenticate etc. etc.
@abhilashmukherjee9536
@abhilashmukherjee9536 8 ай бұрын
Really appreciate how you explained everything from scratch. Helped me build the basic intuition of websockets. Keep doing the good work. Cheers
@ninadbaruah1304
@ninadbaruah1304 2 ай бұрын
I don't understand why this guy has only 7k subs, he deserves more
@metric152
@metric152 3 ай бұрын
this was a great video. i setup the manual upgrade and created a really simple server and client. it just worked! not used to that. keep up the good work.
@datalyrics
@datalyrics Жыл бұрын
Everything is here. Not too much not too little and also the explanations for productive use are super. However, I admit that I always had to stop. The speed is ok nonetheless. Thank you very much for your effort. Without your video and GPT I would not be where I am now in 4 weeks!
@covalence-io
@covalence-io Жыл бұрын
Glad you're enjoying the content!
@JasonLayton
@JasonLayton Жыл бұрын
Hey Matt, good video, thank you for all your help. A suggestion for future videos, maybe zoom out a bit and make the window you're coding in a bit bigger; it would help me to see more of the code at once. Thank you.
@covalence-io
@covalence-io Жыл бұрын
Noted! Appreciate the feedback.
@otmanm4095
@otmanm4095 Жыл бұрын
That channel is so under rated
@stockanalogy8108
@stockanalogy8108 Жыл бұрын
increase your sound in the video i will start watching your videos, you are creating quality content just keep it up, whenever I watch videos from this channel I have seen to grow their channel much faster after my continue watch. Quality content attracts me and youtube recommends that
@mavisakal77
@mavisakal77 2 ай бұрын
just what I was looking for. thanks
@Varun-ms5iv
@Varun-ms5iv 10 ай бұрын
Thank you for the tutorial very simple and very informative. Can you please share the resources you used to know about ws other than ws-docs.
@covalence-io
@covalence-io 9 ай бұрын
Apologies, the only resources I have are from looking at their code, working with the library myself, and various feedback from the experiences of colleagues working with the libraries
@erice.3892
@erice.3892 Жыл бұрын
could you do a video on amqplib and rabbitMQ?
@marvelfancollection3690
@marvelfancollection3690 5 ай бұрын
Bro great video..however can you increase your audio volume in future videos please..tx
@supremeleader5516
@supremeleader5516 4 ай бұрын
finaly a worthy tutorial
@thomas-sinkala
@thomas-sinkala 9 ай бұрын
At 8:33, you talked about auth, can you make video about this part? Thank you.
@covalence-io
@covalence-io 9 ай бұрын
We have this video kzbin.info/www/bejne/qqixmJmoepmGnqc you can check out!
@paulojo720
@paulojo720 10 ай бұрын
My react app is unable to connect, am getting response 404 status
@covalence-io
@covalence-io 10 ай бұрын
when are you getting a 404? when the websocket is trying to connect or when the page loads or what? where do you see the 404 error?
@andrewandrosow4797
@andrewandrosow4797 Жыл бұрын
Hello! I tried to write a simple (non-scalable) web server. But there are in satellite phone networks a connection can be destroyed unexpectedly - but a channel of data transmission in phone stay alive (an indicator on a phone show that data transmission in action) . When a server sending ping to a client each minute (for example) - you can set timeout and kill the connection when a response has`n been received. But a client think - the connection is alive... In my opinion - the solution is the next: we can send from a frontend (browser) pings periodically and responding by a server. Timeout mechanisms must be on both sides: s frontend side and a backend side. But a browser hasn't any event handlers for websocket`s 'ping'. It also can't sends pings to server (a browser only responding on websocket pings) . In fact, I can`t listen 'ping' on a browser side. It`s a disadvantage. Classical TCP Socket in Nodejs can sending keep-alive events from a client or from a server side
@covalence-io
@covalence-io Жыл бұрын
We have another video that should solve this problem here! kzbin.info/www/bejne/mYaqg5-DaLiNZ9k
@andrewandrosow4797
@andrewandrosow4797 Жыл бұрын
@@covalence-io Thanks!
@braddockbrawler
@braddockbrawler Ай бұрын
10k connections is not "scaling", it's family business. 1 million would be real scaling.
@akshatlifts1446
@akshatlifts1446 Жыл бұрын
how to deploy it on server
@Sammysapphira
@Sammysapphira 7 ай бұрын
It is a server.
@RecapFreak
@RecapFreak 6 ай бұрын
Can we host this on vercel ?
@covalence-io
@covalence-io 6 ай бұрын
I'm not sure if Vercel has websocket support or not. I would look into whether or not Next.js will work with websockets and if so then Vercel probably has some way to support them as well
@RecapFreak
@RecapFreak 6 ай бұрын
@@covalence-io Yes I found out that vercel doesn't have support for websockets, so I hosted my backend on Render but it is little slow. I can see the delay in responses.
@yapayzeka
@yapayzeka 5 ай бұрын
why if(!!ws) instead of if(ws)
@sfsadfsadfasdf
@sfsadfsadfasdf 2 ай бұрын
thinking the same..
@ohiasdxfcghbljokasdjhnfvaw4ehr
@ohiasdxfcghbljokasdjhnfvaw4ehr 2 ай бұрын
i dont think starting with the complicated and unnecessary "upgrading" function was a good idea.
@JonStaples-c6q
@JonStaples-c6q Жыл бұрын
Why do you use --save for, that is completely useless.
@covalence-io
@covalence-io Жыл бұрын
--save adds the package as a dependency in your package.json, if you do --save-dev it'll add it as a dev dependency
@JonStaples-c6q
@JonStaples-c6q Жыл бұрын
@@covalence-io all packages are saved to your list of dependencies since npm version 5 ^ --save-dev however is sill necessary to save to your list of dev dependencies.
@covalence-io
@covalence-io Жыл бұрын
@@JonStaples-c6q old habits die hard haha. I explicitly use --save, --save-dev, and --no-save every time i install for some reason but yes you are 100% correct in that the --save is the default behavior
@JonStaples-c6q
@JonStaples-c6q Жыл бұрын
Can't trust somebody who is constantly looking at his notes, lol!
@covalence-io
@covalence-io Жыл бұрын
Actually you can trust that somebody way more...
Keep Those WebSocket Connections Alive!
23:03
Covalence
Рет қаралды 11 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 97 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 1,6 МЛН
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Sam Meech-Ward
Рет қаралды 127 М.
Want to make a chat app? Get Real-time With WebSockets & Socket.io!
1:31:40
Good Morning Developers
Рет қаралды 17 М.
WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more
47:33
Real-Time Push Notifications with Socket.IO | React & Node.js Tutorial
16:20
How to scale WebSockets to millions of connections
14:01
Ably Realtime
Рет қаралды 30 М.
Best way to learn Socket IO | complex chat app
19:52
Hitesh Choudhary
Рет қаралды 117 М.
WebSocket Authentication and Authorization
26:11
Covalence
Рет қаралды 17 М.
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 1 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 97 МЛН