/// <summary> /// Enables Real Time event for this session. /// Real Time events are disabled by default. Usually events /// need to be polled using GET_EVENTS. By enabling this, events will /// be received instantly when they happen through a TCP connection to an Event Server. /// ///This function will first call requestClientConnection, then connect to the address /// </summary> /// <param name="in_connectionType"></param> /// <param name="in_success"></param> /// <param name="in_failure"></param> /// <param name="cb_object"></param> public void EnableRTT(eRTTConnectionType in_connectionType = eRTTConnectionType.WEBSOCKET, SuccessCallback in_success = null, FailureCallback in_failure = null, object cb_object = null) { if (!m_bIsConnected) { m_connectedSuccessCallback = in_success; m_connectionFailureCallback = in_failure; m_connectedObj = cb_object; m_useWebSocket = in_connectionType == eRTTConnectionType.WEBSOCKET; m_clientRef.RTTService.RequestClientConnection(rttConnectionServerSuccess, rttConnectionServerError, cb_object); } }
/// <summary> /// Enables Real Time event for this session. /// Real Time events are disabled by default. Usually events /// need to be polled using GET_EVENTS. By enabling this, events will /// be received instantly when they happen through a TCP connection to an Event Server. /// ///This function will first call requestClientConnection, then connect to the address /// </summary> /// <param name="in_connectionType"></param> /// <param name="in_success"></param> /// <param name="in_failure"></param> /// <param name="cb_object"></param> public void EnableRTT(eRTTConnectionType in_connectionType = eRTTConnectionType.WEBSOCKET, SuccessCallback in_success = null, FailureCallback in_failure = null, object cb_object = null) { _rttComms.EnableRTT(in_connectionType, in_success, in_failure, cb_object); }