(Created page with "=Members= {{ScriptFunction|void|JoinChat|(string name);|Join a chat channel.|5= Space.Network.Chat.JoinChat("Test room") }} {{ScriptFunction|string|GetXMPPName|(string name)...") |
|||
Line 4: | Line 4: | ||
Space.Network.Chat.JoinChat("Test room") | Space.Network.Chat.JoinChat("Test room") | ||
}} | }} | ||
+ | |||
+ | {{ScriptFunction|void|OnChat|(Action< SChatMessage > callback);| Bind a function to the OnChat event. This function will be called every time a new chat message is received on the local channel.|5=<pre> | ||
+ | function oc(SChatMessage) | ||
+ | Space.Log(SChatMessage.Message) | ||
+ | end | ||
+ | |||
+ | Space.Network.Chat.OnChat(oc) </pre> | ||
+ | }} | ||
+ | |||
+ | |||
{{ScriptFunction|string|GetXMPPName|(string name);|Get XMPP name.|5= | {{ScriptFunction|string|GetXMPPName|(string name);|Get XMPP name.|5= |
Join a chat channel.
Bind a function to the OnChat event. This function will be called every time a new chat message is received on the local channel.
function oc(SChatMessage) Space.Log(SChatMessage.Message) end Space.Network.Chat.OnChat(oc)
Get XMPP name.
Leave a chat channel.
|