Use Faye::WebSocket::API::CONNECTING instead of
Faye::WebSocket::API::ReadyStates::CONNECTING.