5dyouxi
游戏
论坛
聊天
开发者
注册
登录
Nonoba APIs and Tools
Developer Forum
Documentation
Download APIs
5dyouxi Developer Forums
/
Multiplayer API
message sequence
scriptedfun
说
很久以前 | 帖子#1
Hello,
Suppose on the server I do the following:
Broadcast(new Message("a"), new Message("b"));
If on the client I have
onMessage
as my
MessageEvent.MESSAGE
handler, is it safe to assume that
onMessage([message "a"]);
will be executed first before
onMessage([message "b"]);
? Does it also work the other way around, meaning, if I do
connection.Send(new Message("a"));
connection.Send(new Message("b"));
on the client, will
GotMessage(player, "message a");
be executed first before
GotMessage(player, "message b");
? Thanks in advance.
最后编辑很久以前
回复主题
现在就注册
以回复主题
注册
或者
登录
scriptedfun说
很久以前 | 帖子#1Suppose on the server I do the following:
Broadcast(new Message("a"), new Message("b"));
If on the client I have onMessage as my MessageEvent.MESSAGE handler, is it safe to assume that
onMessage([message "a"]);
will be executed first before
onMessage([message "b"]);
? Does it also work the other way around, meaning, if I do
connection.Send(new Message("a"));
connection.Send(new Message("b"));
on the client, will
GotMessage(player, "message a");
be executed first before
GotMessage(player, "message b");
? Thanks in advance.