We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
While we wait for the Nodejs core to include HTTP2 support you can experiment with the protocol using the lws-http2 server module.
Navigate into to your project
$ cd example-project
Assuming you already installed local-web-server, next install lws-http2.
$ npm install lws-http2 --save-dev
Launch an HTTP2 server by passing the module name lws-http2 to --server (the lws- prefix is optional).
lws-http2
--server
lws-
$ ws --server http2 Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000