Controlling Data Flow with Websocket – JavaScript Programming Series



Controlling Data Flow with Websocket – JavaScript Programming Series

Controlling Data Flow with Websocket - JavaScript Programming Series

Starting in 2011 a new TCP communication was created for allowing bi-directional data from the client to the server. Since it was first introduced websocket has become well supported in modern browsers and much more common in production systems.

In this tutorial we go over both the client and server implementation of websocket creating a fully functional communication channel.

W3C Specification: https://www.w3.org/TR/2011/WD-websockets-20110929/

Browser support via Can I Use: http://caniuse.com/websockets/embed/

MDN Documentation on Websocket: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket

Github repo with code: https://github.com/ignoreintuition/websocket

Comments are closed.