IRelay
Represents a relay host, that is, a client that accepts other client connections made via external service and relays them to the local Replication Server. Those clients are represented via IRelayConnection in the relay system.
Properties
| RelayManager | Injected by the CoherenceRelayManager. |
Methods
| Close | Called by the CoherenceRelayManager upon getting disconnected from the Replication Server. |
| Flush | Called by the CoherenceRelayManager after all connection updates to flush any unsent data. Flush is optional to implement and might not be required for all relays. |
| Open | Called by the CoherenceRelayManager upon successful connection to the Replication Server. |
| Update | Called regularly by the CoherenceRelayManager when in the "open" state. |
Events
| OnError | Used by the developer to route errors through the CoherenceBridge.onConnectionError event, and to terminate the Client-Hosting session. |