HTTP/2 Client WebSocket support

Pavel Rappo pavel.rappo at oracle.com
Thu Aug 18 10:08:03 UTC 2016


Hi,

Though it's not yet complete and some bugs are expected [1], I strongly suspect
the reason you don't receive any messages from the server might be due to
MessageListener implementation. Could you please post its code? Thanks.

--------------------------------------------------------------------------------
[1] https://bugs.openjdk.java.net/browse/JDK-8161333?jql=labels%20%3D%20websocket%20and%20labels%20%3D%20jep-110%20and%20status%20not%20in%20(resolved%2C%20closed)

> On 18 Aug 2016, at 10:38, Rahman USTA <rahman.usta.88 at gmail.com> wrote:
> 
> 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



More information about the net-dev mailing list