Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

handle stream javascript

source.addEventListener('message', function(e) {
  var data = JSON.parse(e.data);
  console.log(data.id, data.msg);
}, false);
Source by www.html5rocks.com #
 
PREVIOUS NEXT
Tagged: #handle #stream #javascript
ADD COMMENT
Topic
Name
6+2 =