var ws = new WebSocket('ws://example.org:8080/updates');
ws.onopen = function () {
ws.send('hello');
};
ws.onmessage = function (event) {
console.log(event.data);
};
Slide 32
Slide 32 text
USE CASES
•Games
•Notifications
•Collaboration
•Statistics
•Chat