Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DDP Web Socket Reset Cycle in Meteor 0.8.1.1 #2125
Was there a change in the websocket implementation in Meteor v0.8.1.1?
A corresponding ObjectiveDDP issue has been created here: boundsj/ObjectiveDDP#74
STEPS TO REPRODUCE
Run the iOS app in the simulator.
Observe that a "You are not connected" error is returned from the login call. The websocket then goes into a cycle of being ready and not ready.
The websocketReady/NotReady cycle is caused by the SocketRocket delegate method below, called with a code of 1000 and a nil reason string. wasClean is true.
ObjectiveDDP makes the websocket connection using the following command. Note the "pre1" protocol version. Is this the version that should be used with Meteor v0.8.1.1?
To demonstrate expected behavior, execute the same steps to reproduce, except start meteorite from the meteor-example-passing-0.8.0.1 directory.
While on the one hand, the library maintainer should upgrade to use pre2, it's supposed to be backwards compatible with pre1.
It looks like the problem is
So all of these things should happen:
added a commit
May 9, 2014
@jamesfebin This sounds like a different issue. I hope the good folks at https://github.com/boundsj/ObjectiveDDP can help you with it; if it turns out to be a Meteor issue, read https://github.com/meteor/meteor/wiki/Contributing-to-Meteor#reporting-a-bug-in-meteor and open a bug here.