You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Netty based implementation of [rfc8441](https://tools.ietf.org/html/rfc8441) - bootstrapping websockets with http/2
5
+
Netty based implementation of [rfc8441](https://tools.ietf.org/html/rfc8441) - bootstrapping websockets with http/2, and multiprotocol support (websocket-over-http1, websocket-over-http2).
6
6
7
-
Library addresses 2 use cases: for application servers and clients,
8
-
It is transparent use of existing http1 websocket handlers on top of http2 streams; for gateways/proxies,
9
-
It is websockets-over-http2 support with no http1 dependencies and minimal overhead.
7
+
### use cases
8
+
9
+
* Websocket channel API
10
+
11
+
for application servers and clients, It provides transparent use of existing http1 websocket handlers on top of http2 streams. Compatible with
12
+
callbacks codec (described below).
13
+
14
+
* Websocket handshake only API
15
+
16
+
for gateways/proxies, It provides websockets-over-http2 support with no http1 dependencies and minimal overhead.
17
+
18
+
* Websocket multiprotocol
19
+
20
+
for application servers, It provides transparent use of existing http1 websocket handlers to process both http1 and http2 websockets.
21
+
Compatible with callbacks codec (described below).
Integration with [jauntsdn/netty-websocket-http1](https://github.com/jauntsdn/netty-websocket-http2/tree/develop/netty-websocket-http2-callbacks-codec) codec for websocket-http1
26
+
Integration with [jauntsdn/netty-websocket-http1](https://github.com/jauntsdn/netty-websocket-http2/tree/develop/netty-websocket-http2-callbacks-codec) codec (callbacks codec) for websocket-http1
Initial settings of server http2 codecs (`Http2ConnectionHandler` or `Http2FrameCodec`) should contain [SETTINGS_ENABLE_CONNECT_PROTOCOL=1](https://tools.ietf.org/html/rfc8441#section-9.1)
132
166
parameter to advertise websocket-over-http2 support.
@@ -181,6 +215,12 @@ Events are fired on parent channel, also on websocket channel if one gets create
Outbound `Http2WebSocketLocalCloseEvent` on websocket channel pipeline closes
@@ -265,7 +305,7 @@ the results are as follows (measured over time spans of 5 seconds):
265
305
266
306
*`channelserver, channelclient` packages for websocket subchannel API demos.
267
307
*`handshakeserver, channelclient` packages for handshake only API demo.
268
-
*`multiprotocolserver, multiprotocolclient` packages for demo of server handling htt1/http2 websockets on the same port.
308
+
*`multiprotocol` packages for demo of server handling htt1/http2 websockets on the same port.
269
309
*`lwsclient` package for client demo that runs against [https://libwebsockets.org/testserver/](https://libwebsockets.org/testserver/) which hosts websocket-over-http2
270
310
server implemented with [libwebsockets](https://github.com/warmcat/libwebsockets) - popular C-based networking library.
Copy file name to clipboardExpand all lines: netty-websocket-http2-example/src/main/java/com/jauntsdn/netty/handler/codec/http2/websocketx/example/Security.java
0 commit comments