camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <>
Subject Re: Camel websocket disconnect trigger
Date Sat, 05 Jan 2013 06:56:48 GMT

Current Camel websocket manage the web socket connection itself with the MemoryWebsocketStore.
I'm not sure what kind of resource you need to manage yourself.

You should be able to know if the client web socket disconnect if you can pass the customer
NodeSynchronization into the WebSocketEndpoint. As current Camel WebSocket doesn't expose
the API, you need to hack the code to pass the reference.

Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: |
Blog: ( (English)
 ( (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On Saturday, January 5, 2013 at 10:54 AM, aoisagi wrote:

> Hi, I just started playing around with camel-websocket, however, there
> doesn't seem to be a trigger when the client quit the browser. Is there some
> kind of mechanism to detect disconnected socket so I can recycle some
> resources that's dedicated to that socket previously? Thanks.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at (

View raw message