socketry / async-websocket

Asynchronous WebSocket client and server, supporting HTTP/1 and HTTP/2 for Ruby.
MIT License
167 stars 18 forks source link

cannot load such file -- async/websocket/server/rack #13

Closed matti closed 5 years ago

matti commented 5 years ago

I copy/pasted https://github.com/socketry/async-websocket#server-side-with-rack--falcon

Isn't it 'async/websocket/adapters/rack' ?

ioquatix commented 5 years ago

Yeah, it's changed but I'll need to update the documentation. Sorry.

Nakilon commented 1 year ago

I copypasted https://socketry.github.io/async-websocket/guides/getting-started/index.html#server-side-with-rack-&-falcon

Got

               |   LoadError: cannot load such file -- async/websocket/adapters/rack
               |   → /Users/nakilon/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:37 in `require'

heh

Nakilon commented 1 year ago
$ gem list async

*** LOCAL GEMS ***

async (1.30.1)
async-container (0.16.12)
async-http (0.60.1, 0.56.5)
async-http-cache (0.4.3)
async-io (1.32.2)
async-pool (0.3.9)
async-websocket (0.25.1, 0.19.0)
Nakilon commented 1 year ago

nevermind

  1. I had Gemfile in current dir and falcons seems to consume it even without bundle
  2. Another error I faced (undefined run) was due to example being copypasted as temp.rb, not temp.ru
ioquatix commented 1 year ago

Thanks for reporting back the issues you faced, I'm sure it can help other people too.