Breakroom is now Sinewave Campus. Book a meeting

SNetworkMessageLua

ClientRéseau
Dans cette classeKey
  1. Propriétés
  2. Key
  3. Message
Membres 2
PropriétéKeyThe Key this message was sent with.
PropriétéMessageThe contents of this message.

Propriétés​

KeyLecture seule​

string Key {get; }

The Key this message was sent with.

Exemple

Lua
function OnReceiveFunction(receivedMessage)
local theKey = receivedMessage.Key
end
Space.Network.SubscribeToNetwork("AKey", OnReceiveFunction)

MessageLecture seule​

Table Message {get; }

The contents of this message.

Exemple

Lua
function OnReceiveFunction(receivedMessage)
local tableMessage = receivedMessage.Message
end
Space.Network.SubscribeToNetwork("AKey", OnReceiveFunction)