We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
这两个方法容易产生误解,考虑 RoomObject 是否也应该有个事件机制:room.on('message', callback); 或者至少方法名不要用主动动词:room.onMessage(callback)。
room.on('message', callback);
room.onMessage(callback)
The text was updated successfully, but these errors were encountered:
当时设计时考虑 roomObject 中不要暴露底层事件,不希望用户产生混乱。 receive 和 receipt 相当于是快捷方法。 你可以理解为 jQuery 中的 click、dblclick 等方法一个道理。
Sorry, something went wrong.
已经讨论。
No branches or pull requests
这两个方法容易产生误解,考虑 RoomObject 是否也应该有个事件机制:
room.on('message', callback);
或者至少方法名不要用主动动词:room.onMessage(callback)
。The text was updated successfully, but these errors were encountered: