internal AblyRealtime(AblyRealtimeOptions options, IConnectionManager connectionManager) { _options = options; _protocol = _options.UseBinaryProtocol == false ? Protocol.Json : Protocol.MsgPack; IChannelFactory factory = new ChannelFactory() { ConnectionManager = connectionManager, Options = options }; this.Channels = new ChannelList(connectionManager, factory); this.Connection = connectionManager.Connection; _simpleRest = new Rest.AblySimpleRestClient(options); InitAuth(_simpleRest); if (options.AutoConnect) { this.Connection.Connect(); } }
/// <summary> /// /// </summary> /// <param name="options"></param> public AblyRealtime(AblyRealtimeOptions options) : this(options, new ConnectionManager(options)) { }