engine.io-client icon indicating copy to clipboard operation
engine.io-client copied to clipboard

Support nodejs client for WebTransport

Open maa105 opened this issue 1 year ago • 1 comments

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

maa105 avatar Mar 04 '24 16:03 maa105