celluloid / reel

UNMAINTAINED: See celluloid/celluloid#779 - Celluloid::IO-powered web server
https://celluloid.io
MIT License
596 stars 87 forks source link

Update Subclass Form in README to pass Reel::Websocket instead of Reel::Request #135

Closed travisvalentine closed 10 years ago

travisvalentine commented 10 years ago

I'm trying celluloid/reel for the first time and was trying to get things set up given the examples. However I was getting errors using the example in the Subclass Form when calling:

sock << "Hello everyone out there in WebSocket land!"

I realized this is due to attempting to call write on a Reel::Request as opposed to a Reel::Websocket. It could very well be that I'm not doing things properly, but this adjustment seems to have done the trick for me.

travisvalentine commented 10 years ago

Actually, this may be my fault with implementation. Looks like the Reel::Connection being sent has :headers as its response_state, so it makes sense as to why I'm getting my not in chunked body mode error while attempting to write. I'll ask in the google group and close this for now.