How Server Sent Event send response to a specific client
问题 In Server Sent Event, it always send the same response to all the client. but what i want to know is, How to send response to an only one client using java. this is my event which define inside sw.js (SSE) var eventSource = new EventSource("HelloServlet"); eventSource.addEventListener('up_vote',function(event){ console.log("data from s" , event.data); var title = event.data; self.registration.showNotification(title, { 'body': event.data, 'icon': 'images/icon.png' }) }); I want to show this