As you noticed in the comments, the gem did not have SSL support. That is the problem. To state the answer, here is a resolution, as well as some next steps that can be expected in the future:
[now] Override methods in Celluloid::WebSocket::Client::Connection
This is an injection example to provide SSL support for the current gem. In fact, the mine is heavily modified, but this shows you the main solution:
def initialize(url, handler=nil) @url = url @handler = handler || Celluloid::Actor.current
The above sends ripple effects in other ways, for example, @handler used to hold the caller who also has emitter methods on it. As I said, my version is very different from the stock, because I was tired of it and reworked mine. But then:
[soon] Use Reel::IO::Client and avoid some brain damage.
Interesting things are happening with WebSocket support, and gem is currently being used to reorganize server and client implementations of Web sites. No more monkeypatches required!
All websocket functionality is retrieved from Reel and combined with the websocket-driver abstraction, like Reel::IO ... in the options ::Server and ::Client .
Interestingly, this is caused by Rails , which departs from EventMachine to Celluloid::IO for websockets:
Prealpha is online to preview: https://github.com/celluloid/reel-io
source share