hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-973) Websocket support
Date Tue, 16 Nov 2010 16:22:14 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932523#action_12932523
] 

Oleg Kalnichevski commented on HTTPCLIENT-973:
----------------------------------------------

> I would need some assistance regarding the design of how it would integrate with the
rest of HttpClient.

Hi John

I am far from being a fan of (mis)using of NIO just for the heck of it, but in case of the
WebSocket protocol I think that a non-blocking I/O model would make good sense. So, you should
start off by taking a look at HttpCore NIO to get a feel for developing asynchronous services
based on HttpCore [1]. There is also an asynchronous version of HttpClient at a very early
(pre-alpha) stage of development that you might find useful, as it has an implementation of
a pooling connection manager for non-blocking HTTP connections [2]

Cheers

Oleg

[1] http://hc.apache.org/httpcomponents-core-ga/tutorial/html/nio.html
[2] http://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/trunk/

> Websocket support
> -----------------
>
>                 Key: HTTPCLIENT-973
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-973
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient
>            Reporter: Erik Martino Hansen
>             Fix For: Future
>
>
> Websocket are designed for browser use but I see useful use cases in a java client as
well:
> - java clients for existing websites where changes are pushed to clients using websockets
> - use of websockets to tunnel through firewalls
> - put all communication behind single port on servlet engine.
> A good example on emerging use is websocket+stomp (http://jmesnil.net/stomp-websocket/doc/,
http://www.nighttale.net/activemq/activemq-54-stomp-over-web-sockets.html)
> so I believe hc should support websocket clients.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message