A remote scene.
- Source:
Members
getComponent :Stormancer.ISerializer
The serializer to use with the peer.
Type:
- Source:
id :string
Unique id of the peer in the Stormancer cluster
Type:
- string
- Source:
Methods
getComponent(componentName) → {object}
Returns a component registered for the peer.
Parameters:
Name | Type | Description |
---|---|---|
componentName |
string | The name of the component. |
- Source:
Returns:
The requested component.
- Type
- object
send(route, data, priority, reliability)
Sends a message to the remote peer.
Parameters:
Name | Type | Description |
---|---|---|
route |
string | The route on which the message will be sent. |
data |
Uint8Array | A method called to write the message. |
priority |
PacketPriority | The message priority. |
reliability |
PacketReliability | The message requested reliability. |
- Source: