Okhttp android Websocket and Jetty Server connection with SSL

那年仲夏 提交于 2019-11-28 14:31:59
new SslConnectionFactory(contextFactory,  
        org.eclipse.jetty.http.HttpVersion.HTTP_2.toString());

WebSocket over HTTP/2 doesn't exist (yet).

https://daniel.haxx.se/blog/2016/06/15/no-websockets-over-http2/

The concept of WebSocket over HTTP/2 is brand new, the draft specs have only been talked about in the past few months.

https://tools.ietf.org/html/draft-ietf-httpbis-h2-websockets-01

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!