private async Task Disconnect() { var tcs = new TaskCompletionSource <bool>(); SendBirdClient.Disconnect(() => { tcs.SetResult(true); }); await tcs.Task; }
public void Disconnect() { LogMessage("Disconnecting - current status " + SendBirdClient.GetConnectionState().ToString()); SendBirdClient.Disconnect(() => { LogMessage("OnDisconnect"); _completionHandler.OnDisconnect( SendBirdClient.GetConnectionState() == SendBirdClient.ConnectionState.CLOSING || SendBirdClient.GetConnectionState() == SendBirdClient.ConnectionState.CLOSED ); }); }
public void DisconnectMessenger() { SendBirdClient.Disconnect(null); }
public void Disconnect() { SendBirdClient.Disconnect(() => { }); }