SNetworkMessageLua
ClientNetwork
Members 2
| Property | Key | The Key this message was sent with. |
| Property | Message | The contents of this message. |
Properties
KeyRead only
string Key {get; }
The Key this message was sent with.
Example
Lua
function OnReceiveFunction(receivedMessage)
local theKey = receivedMessage.Key
end
Space.Network.SubscribeToNetwork("AKey", OnReceiveFunction)
MessageRead only
Table Message {get; }
The contents of this message.
Example
Lua
function OnReceiveFunction(receivedMessage)
local tableMessage = receivedMessage.Message
end
Space.Network.SubscribeToNetwork("AKey", OnReceiveFunction)



