using System; using System.Threading.Tasks; using LeanCloud.Realtime; using LeanCloud.Realtime.Internal; namespace LeanCloud { public static class LCApplicationRealtimeExt { static LCConnection connection; public static async Task CreateIMClient(this LCApplication application, string clientId) { if (string.IsNullOrEmpty(clientId)) { throw new ArgumentNullException(nameof(clientId)); } LCIMClient client = new LCIMClient(clientId); return client; } } }