Hacker News new | ask | show | jobs
by zwp 1534 days ago
Cute! But I get an error if I try "require 'resolv'", is this expected?

<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- socket (LoadError)

1 comments

WASI doesn't support sockets yet, and in any case there's no browser API available to implement socket-level networking. Practical use of this would require bridging over to JS to implement HTTP requests and the like,