engine.io-client
engine.io-client copied to clipboard
Support nodejs client for WebTransport
Hello, thank you for the great work you continue to do.
It seems when creating a client for WebTransport it is expected that the environment is browser check here but one might want to use a client in nodejs environments as well. The good thing is @fails-components has a client for nodejs all that needs to be done is update the line referred above were if typeof WebTransport !== 'function' we import WebTransport from @fails-components/webtransport/lib/webtransport.node.js
I tried it locally it works (now I have other issues related to handshake) but at least it creates the WebTransport correctly