# SNetworkMessageLua

**Membres** 2

|           |                     |                                     |
| --------- | ------------------- | ----------------------------------- |
| Propriété | [Key](#key)         | The Key this message was sent with. |
| Propriété | [Message](#message) | The contents of this message.       |

## Propriétés

### Key

string Key {get; }

The Key this message was sent with.

Exemple

**Lua**

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

```

### Message

Table Message {get; }

The contents of this message.

Exemple

**Lua**

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

```
