HTTP/2 Client WebSocket support

Rahman USTA rahman.usta.88 at gmail.com
Thu Aug 18 09:38:18 UTC 2016


Hello;

I try the WebSocket API in java.httpclient module;

URI uri = URI.create("ws://localhost:8080/merhaba");
        MessageListener messageListener = new MessageListener();

        WebSocket.newBuilder(uri, messageListener)
                .buildAsync()
                .join();

I have this code, it connects to WebSocket server, but after connection it
doesn't get messages sent from server. Is this feature ready to test?

Thanks.

-- 
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta <http://www.kodcu.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20160818/f813767b/attachment.html>


More information about the net-dev mailing list