title: server sent event problem in parameter in each click
body: <p>i had a problem in update server sent event</p>
  
  <p>i click 3 times first time id = 1 second id = 2 third = 3 </p>
  
  <p>output = 1 , 1 ,1 ,1 , 1 , 1 (first click)</p>
  
  <p>output = 1 , 2 , 1 , 2 , 1 , 2 (second click)</p>
  
  <p>output = 1 , 2 , 3 , 1 , 2 , 3 (third click)</p>
  
  <p>i want the particular id that user click only 
  so any help</p>
  
  <pre><code>$(document).on('click','.navbar-menu .online ul li',function(e){
  
       var id = $(this).attr('id');
  
       var ev = '';
  
               ev = new EventSource("/ajaxpages/insertmessage.php?id="+id+" ");
  
               ev.onmessage = function(data) {
  
                   console.log(data['data']);
  
               }; }
  </code></pre>