How exactly can I replace the server event with a websocket?

I am using Jersey to create a RESTful webservice that uses server-side event heavily. Since we all know IE does not support Server-Sent Event (SSE), for a while I thought I could use websocket and not SSE (finally I am using polyfill), but the problem is how can I do that what?

One solution I came up with was to use the websocket endpoint as a jersey client so that I could receive the response and convert it to an event and then send it to the real client. I know there are many problems, for example not all requests result in an event. I can imagine the websocket endpoint is going to be very complex and will get out of hand soon if I consider very much the situation.

Any idea? Thank.

+3
java jersey websocket server-sent-events


source to share


No one has answered this question yet

Check out similar questions:

2240
How to create an executable JAR with dependencies using Maven?
944
What are Long-Polling, Websockets, Server-Sent Events (SSE), and Comet?
755
WebSockets or Server-Sent / EventSource Events
nine
Disadvantage of using Server-Sent events for bidirectional client-to-server communication (instead of WebSockets)
7
What is the difference between Websocket, Server Sent Events (SSE) and HTTP2 Server Pushing?
3
Server Requests-Sent Events
3
HTML5 Server Event: EventSource and Wrapped WebSocket
3
Golang server events
1
Server-Sent Events - Still Worth Checking Out?
0
How to perform CDC testing for Server Sent Events (SSE) and / or WebSockets



All Articles
Loading...
X
Show
Funny
Dev
Pics