# SNetworkMessageLua

## Index

### Properties Index

| Property Name                       |
| ----------------------------------- |
| string [**Key** ](#key)`get`        |
| Table [**Message** ](#message)`get` |

## Properties

### Key

string **Key** `get`

*The Key this message was sent with.*

{% tabs %}
{% tab title="Lua" %}

```lua
function OnRecieveFunction(recievedMessage)
theKey = recievedMessage.Key
end
Space.Network.SubscribeToNetwork(OnRecieveFunction)
```

{% endtab %}
{% endtabs %}

### Message

Table **Message** `get`

*The contents of this message.*

{% tabs %}
{% tab title="Lua" %}

<pre class="language-lua"><code class="lang-lua">function OnRecieveFunction(recievedMessage)
<strong>tableMessage = recievedMessage.Message
</strong>end
Space.Network.SubscribeToNetwork(OnRecieveFunction)
</code></pre>

{% endtab %}
{% endtabs %}
