×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Denis Zakharov
Added: Aug 10, 2021 11:11 AM
Views: 3682
Tags: eventsource
  1.         var evtSource = new EventSource('/wazzup.su/wazzup.su.php');
  2.         evtSource.addEventListener('message', (e) => {
  3.                 console.log(e.data);
  4.         });