- Set your API token via the
HypeRate.GetInstance().SetApiToken(string newToken)
method - Call
HypeRate.GetInstance().Start()
on application startup - Call
HypeRate.GetInstance().Connect()
when you want to establish a connection - Subscribe to the events you want to receive:
- Connected
- Disconnected
- ChannelJoined
- ChannelLeft
- HeartbeatReceived
- ClipCreated
- Call
HypeRate.GetInstance().JoinHeartbeatChannel()
with the user device ID for receiving updates of the users heartbeat - Call
HypeRate.GetInstance().LeaveHeartbeatChannel()
with the user device ID when you not want to receive further updates of the users heartbeat - Call
HypeRate.GetInstance().Disonnect()
when you want to close the connection to the server
The Device
class contains utility functions for working with device IDs (like validating them or extracting them from
user input).