Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

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

Closed

Conversation

travisvalentine
Copy link

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant