/// <summary> /// Normally not needed as the brainCloud SDK sends heartbeats automatically. /// Regardless, this is a manual way to send a heartbeat. /// </summary> public void SendHeartbeat( SuccessCallback success = null, FailureCallback failure = null, object cbObject = null) { ServerCall sc = new ServerCall(ServiceName.HeartBeat, ServiceOperation.Read, null, new ServerCallback(success, failure, cbObject)); _comms.AddToQueue(sc); }
/// <summary>Sends a service request message to the server. </summary> /// <param name="serviceMessage">The message to send</param> internal void SendRequest(ServerCall serviceMessage) { // pass this directly to the brainCloud Class // which will add it to its queue and send back responses accordingly m_bc.AddToQueue(serviceMessage); }