WebSockets provide new protocol between client and server which runs over a
persistent TCP connection. Through this open connection, bi-directional,
full-duplex messages can be sent between the single TCP socket connection
(simultaneously or back and forth). Because it is an independent TCP-based
protocol, it doesn't ideally require HTTP tunneling (similar to Netflix and
other streaming services), allowing for simplified communication when sending
WebSockets come after many other technologies that allow servers to send
information to the client. Web applications that use Comet/Ajax, push/pull
and long polling all do this over HTTP. Other than handshaking the Upgrade
Header, WebSockets is independent from HTTP.
What kind of apps can you build with WebSockets?
So why would you want to use WebSockets (or something like it)? It's not
really about WebSockets; ... (more)
You may not realize it, but your house is getting smarter. Devices that were
once entirely manually controlled, whether it's your thermostat, the locks on
your doors, or your porch lights, are now entering an era of autonomy, and
the list of devices in the home automation spectrum is continuing to grow.
Now that the masses are armed with smartphones, why shouldn't you be able to
control your home...when you're not home?
Home automation is getting more advanced, smarter, and more streamlined by
the day. When you flip a light switch, you expect that light bulb to turn on