Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 websockets vs PHP websockets vs node.js websockets?

Tags:

html

php

node.js

I have decided to use WebSockets for my website chat application and I have just started to learn websockets, but I have three different options, node.js , PHP or HTML5.

What I want to know that is there any difference between the three, I mean I don't want to learn all the three if any one is better than the others.

like image 833
Naveen Avatar asked Feb 10 '15 06:02

Naveen


1 Answers

Web Sockets is a protocol which defines how two parties can communicate. It's language agnostic; any language can provide an adapter to talk to another web socket. The three things you mention are three different implementations for of this adapter. For a chat application, you'll likely need at least two of them: one server, one client. Choose which language you'd like to write your server in (PHP or Node.js) and use the HTML 5 web sockets feature in the browser to talk to the server.

like image 80
deceze Avatar answered Oct 16 '22 04:10

deceze