[undertow-dev] Server-Sent Event and HttpServerExchange

Stuart Douglas sdouglas at redhat.com
Mon Jun 1 03:14:17 EDT 2015


This was basically an oversight on my part. I have fixed this in Undertow upstream:

https://github.com/undertow-io/undertow/commit/90789748d3b493d7a233a4ef5ba8ae33032c1543

Stuart

----- Original Message -----
> From: "Cédric Tran-Xuan" <cedric.tranxuan at motwin.com>
> To: undertow-dev at lists.jboss.org
> Sent: Friday, 22 May, 2015 10:52:36 AM
> Subject: [undertow-dev] Server-Sent Event and HttpServerExchange
> 
> Hello,
> We are looking at the recent support of Server-Sent Events in Undertow, which
> looks great!
> 
> We are using the HttpServerExchange to pass data through different handlers
> (we do it by passing these data via setting Attachments to the
> HttpServerExchange). Ultimately, we need these data, to determine what to
> push to the client via SSE. And as we don't have access to the
> HttpServerExchange from the ServerSentEventConnection, we are a bit stuck.
> 
> We imagine we can code some « hack » to do so, but first, we were wondering
> if ever the dev team had some insights that could help us to implement the
> best solution that fits the « Undertow spirit » and our need.
> 
> Thanks in advance for your answer.
> Best regards,
> 
> Cédric.
> 
> PS: may be passing data via Attachments of HttpServerExchange is not the best
> practice?
> 
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev



More information about the undertow-dev mailing list