-
We seem to be running into the limitations of SSE over HTTP/1.1 in our application, and would ideally like to use HTTP/2 to solve this rather than adding Websockets. Unfortunately it's not clear how to use HTTP/2 with Yoga's server adapter is not compatible with nodes What are the current limitations for using HTTP/2 with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To answer my own question, it is possible to run yoga under HTTP/2 with some finagling. I was able to get this working under Node 18 using the native fetch implementation. The Even then, the ponyfill created by
|
Beta Was this translation helpful? Give feedback.
To answer my own question, it is possible to run yoga under HTTP/2 with some finagling. I was able to get this working under Node 18 using the native fetch implementation. The
node-fetch
polyfill fails withTypeError: :method is not a legal HTTP header name
.Even then, the ponyfill created by
@whatwg-node/fetch
seems to be providing the wrong Request class, but this is easily resolved in Node 18 by passingglobalThis
tofetchApi
.