-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RealtimeObject.room(id, cb)并没有执行cb #37
Comments
另外, |
非常感谢,对你使用产生的问题非常抱歉,已经提交代码,会尽快发布。 |
已经修正发布 2.0.1 版本 https://github.com/leancloud/js-realtime-sdk/releases/tag/2.0.1 |
建议realtimeObject.room()方法中的cb回调,能将room对象直接作为参数,因为这个回调执行的比room方法返回还早:
而如果使用room作为回调参数的话:
Node.js当中,对于这样的情况使用nextTick来调用回调,但是浏览器里就只有个setTimeout,比较丑陋,如果忍受不了这样丑陋,起码应该给这个回调一个room作为参数。 |
好的,这种情况我考虑一下。单独另外弄个 issue 吧,感谢反馈。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/leancloud/js-realtime-sdk/blob/master/src/AV.realtime.js#L966
即使id是一个已经存在的roomId,该callback并不会执行,与文档https://leancloud.cn/docs/js_realtime.html#RealtimeObject_room-1 相悖。
The text was updated successfully, but these errors were encountered: