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

Support the Rack hijack API #2

Open
tarcieri opened this issue Sep 15, 2013 · 0 comments
Open

Support the Rack hijack API #2

tarcieri opened this issue Sep 15, 2013 · 0 comments

Comments

@tarcieri
Copy link
Member

Rack has an API that allows the socket to be hijacked from the web server and managed directly by the Rack application itself:

rack/rack#481

This allows certain problematic restrictions of Rack, such as mandatory rewindable input, to be bypassed. This makes it useful for things like WebSockets, server sent events, and streaming HTTP requests/responses.

Reel::Rack could certainly benefit from this API! In fact, Reel already has support for hijacking the connection. All that needs to be done is wiring up one with the other:

https://github.com/celluloid/reel/blob/master/lib/reel/connection.rb#L149

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

No branches or pull requests

1 participant