Open hajsf opened 1 year ago
You're supposed to run this using Deno. "node:crypto" is Deno syntax for the built-in crypto module.
Deno removes the need to compile Typescript. It's way better, trust me. :)
You're supposed to run this using Deno. "node:crypto" is Deno syntax for the built-in crypto module.
Deno removes the need to compile Typescript. It's way better, trust me. :)
No; node:crypto
is the new standard way of defining imports in Node.js. Deno may support this too (I haven't tested), but this package is meant to be used from Node.js 16+.
@hajsf it looks like a problem with your environment, possibly node.js version, TS version, build chain, etc. Not sure.
You're supposed to run this using Deno. "node:crypto" is Deno syntax for the built-in crypto module. Deno removes the need to compile Typescript. It's way better, trust me. :)
No;
node:crypto
is the new standard way of defining imports in Node.js. Deno may support this too (I haven't tested), but this package is meant to be used from Node.js 16+.@hajsf it looks like a problem with your environment, possibly node.js version, TS version, build chain, etc. Not sure.
Oh. Whoops. I assumed Deno since it uses that exact same syntax for importing it's Node polyfills.
Speaking of Deno, were you able to get this package working with Deno? I keep getting WebSocket error: Error: Unexpected server response: 400
Speaking of Deno, were you able to get this package working with Deno? I keep getting
WebSocket error: Error: Unexpected server response: 400
Bad request. You're probably doing something wrong.
I got the below error while trying to test it at WSL 2 (Ubuntu under Windows), thanks