How to Create a WebSocket Server & Client

preview_player
Показать описание


Hi. I'm Nono. I host Getting Simple—a podcast about how you can live a more meaningful, creative, and simple life—sketch things that call my attention, and write about enjoying a slower life.

Elsewhere
Рекомендации по теме
Комментарии
Автор

For those who still wondering why you getting 'no valid WebSocket class provided' error, change this:


to



It works for me now.

davidlatal
Автор

Hi I needed to learn WebSocket, This video was amazing to follow and create along.
Thank you.

with-ittechnology
Автор

The top result videos are garbage, thankfully I found this video. Thank you!

jamiekeynes
Автор

Hey Nono...I got an error (no valid WebSocket class provided) at around 14:00mins when I tried to launch the client. After some googling...seems 'constructor' in line 9 of your WebClient code has been replaced with 'WebSocket' with all the changes to version 4 of the library. When I switched out 'contructor' with 'WebSocket'...the client launched. Oh...great video! Thanks for sharing!!

sennabullet
Автор

Thank you very much! Just what I needed!

BruceLeeBeatz
Автор

Hey, at 14:09 I get an error "No valid WebSocket class provided", any help please?

ModricFX
Автор

Great video sir... very helpful... can you do a video on how to display data on a browser that we got from a websocket stream

aashiqotp
Автор

so if its on a vps do i have to change the port on the server.js to 80 instead of 3000 as well as in the client?

Verion
Автор

Hello there Nono, I'm tryig to make an online Browser based Basketball scoreboard, I think webSocket and your example will do the trick.. Is it possible to embed websocket on android app? and I also need a Peer to Peer connection like webRTC directly connected via WiFi between 2 devices, the client-end already has a browser. Capability.

leisryan
Автор

i have this error:
Error: Cannot find module 'html5-websocket'

what can i do to fix it?
Edit: nvm i fixed it

berbseedle
Автор

Hello, instead of getting "A client was connected" it just gives me connection closed being spammed?

Kitnick.
Автор

Someone please help me with a fix for this error

angellanaigaga
Автор

code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port: 34512
i tried tons of ports and none of them worked

berbseedle
Автор

Hi, how do I store data to a database using socket?

faizc
Автор

i was wondering how can i create my own websocket, websocket server?

JC-fdho
Автор

Mine spams: "[Client] Connection lost."

gksxyt