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

remove rack dep, add fwd to ping #188

Closed
wants to merge 33 commits into from
Closed

Conversation

kenichi
Copy link
Member

@kenichi kenichi commented Apr 8, 2015

this should resolve #186 and #187 - in my testing, this limited amount of rack mimicry works, no need for a full gem dependency and Rack::MockRequest instantiation.

also, this adds a forward to the driver for WebSocket#ping.

//de and others added 30 commits December 11, 2013 04:45
This will change as of celluloid#121 and be updated in celluloid#123 after that.
Unix server goes into 0.6.0 ( but not for jRuby )
driver_env = DriverEnvironment.new(info, connection.socket)
driver_env = DriverEnvironment.new(info, connection.socket)

@socket = connection.hijack_socket
@request_info = info

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just under this point, can we not use rack() and use one of the other initialization methods?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the comments in the original PR. Driver.server calls Driver.rack eventually, after parsing the headers on its own. websocket-driver does not depend on rack itself, but is built to expect rack apparently.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Roger that. Can you verify this is operating as expected, with tests using all WebSocket functionality?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the angelo functional tests work with it, all the reel specs pass, and using it IRL with chrome websockets seems to work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After you post a new PR, and we give @jcoglan a bit of time to possibly review your changes and comment, I will merge this and cut it as pre2 and we can see how it does in the wild then.

@digitalextremist
Copy link
Member

So far, extremely valiant and speedy effort @kenichi. Wondering if we have all the tests needed to verify this works in the wild.

@digitalextremist
Copy link
Member

When you're ready, re-pull this to the 0.6.0-milestone branch please. We're still cutting off that until Garland lands fully.

@tarcieri
Copy link
Member

tarcieri commented Apr 9, 2015

@jcoglan any thoughts here?

@kenichi
Copy link
Member Author

kenichi commented Apr 9, 2015

ah, oops, i'll rebase from that branch.

@kenichi
Copy link
Member Author

kenichi commented Apr 9, 2015

see #189

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.

Remove Rack dependency.
3 participants