users@grizzly.java.net

Re: WebSockets accessing request and response headers.

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Wed, 29 Sep 2010 18:08:04 +0200

On Sep 29, 2010, at 17:57 , Vincent Nonnenmacher wrote:

> On 29/09/10 16:58, Oleksiy Stashok wrote:
>> Hi guys,
>>
>> in Grizzly 2.0 RC2 we've exposed HttpHeader attribute, which could
>> be accessed like:
>>
>> WebSocket.getMeta().getHandshakeHeader()
>>
>>
> great will take a look, btw
> do you plan to write a sample code showing an echo like websockets
> test using this version ?
>
> a code sample along the way it is presented in Faye would be great : http://faye.jcoglan.com/
>
> (even if we could accepts slightly more lines weight due to java ;-)

We have a chat sample here:
https://grizzly.dev.java.net/source/browse/grizzly/branches/2dot0/code/samples/websockets/chat/

You can run the server, which will serve both browser and standalone
websockets client.

WBR,
Alexey.

>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>