Server-sent event does not work with jersey SSE

后端 未结 4 2067
无人共我
无人共我 2021-01-06 04:05

I am trying to use JavaScript SSE from Jersey. I have Following code in my resource. I am hosting on Java7 and Tomcat 7. I dont get any error. But I don\'t see data either o

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-06 04:34

    Here is an example which might be helpful to you: http://en.kodcu.com/2013/11/jaxrs-2-html-5-server-sent-events-on-glassfish-4/

    And you may also refer to this page to see if your browser supports EventSource API http://www.eventsourcehq.com/browser-support

提交回复
热议问题