[undertow-dev] Server-Sent Event and HttpServerExchange

Stuart Douglas sdouglas at redhat.com
Mon Jun 1 03:19:02 EDT 2015


Oops, that commit should have been https://github.com/undertow-io/undertow/commit/5bbab054a13e2fe05894be4d9fa37bc9476848ad

Stuart

----- Original Message -----
> From: "Stuart Douglas" <sdouglas at redhat.com>
> To: "Cédric Tran-Xuan" <cedric.tranxuan at motwin.com>
> Cc: undertow-dev at lists.jboss.org
> Sent: Monday, 1 June, 2015 9:14:17 AM
> Subject: Re: [undertow-dev] Server-Sent Event and HttpServerExchange
> 
> 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
> 
> _______________________________________________
> 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