|
|
(7 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | =Members=
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/network/schat |
− | | + | |
− | {{ScriptFunction|void|JoinChat|(string name);|Join a chat channel.|5=
| + | |
− | 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=
| + | |
− | Space.Network.Chat.GetXMPPName("Test room")
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|void|LeaveChat|(string name);|Leave a chat channel.|5=
| + | |
− | Space.Network.Chat.LeaveChat("Test room")
| + | |
− | }}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 06:59, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/network/schat