Ask coding questions

← Back to all posts
Sockets vs Web sockets
IMayBeMe

So recently I have been working on a project utilizing web sockets for sending and receiving data from the server. My main question here is the difference between sockets and web sockets, more specifically on how they function just to get a better understanding for my project.

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
GameDev46
IMayBeMe
Comments
hotnewtop
Coder100

you could read this:
https://stackoverflow.com/questions/4973622/difference-between-socket-and-websocket

but the thing is
don't use sockets
use websockets

sockets are if you want more control over what happens, which you probably don't.
at least I never did

IMayBeMe

@Coder100 thanks!

Coder100
ruiwenge2