Breakroom is now Sinewave Campus. Book a meeting

SNetworkMessageLua

ClientNetwork
On this classKey
  1. Properties
  2. Key
  3. Message
Members 2
PropertyKeyThe Key this message was sent with.
PropertyMessageThe 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)