public LiquidQuoineSocketClient(LiquidQuoineSocketClientOptions options) : base(options, null)
 {
     _currentUserId = options.UserId;
     Configure(options);
     log.Level     = LogVerbosity.Debug;
     _pusherClient = new Pusher(options.PushherAppId, new PusherOptions()
     {
         ProtocolNumber = 7, Version = "4.4.0"
     });
     _pusherClient.Connect();
 }
Ejemplo n.º 2
0
 public LiquidQuoineSocketClient(LiquidQuoineSocketClientOptions options) : base(options, null)
 {
     _currentUserId = options.UserId;
     // Configure(options);
     log.Level     = LogVerbosity.Debug;
     _pusherClient = new Pusher(options.PushherAppId, new PusherOptions()
     {
         ProtocolNumber = 7,
         Version        = "4.4.0",
         Endpoint       = options.BaseAddress
     });
     _pusherClient.Connect();
     _pusherClient.Error     += OnError;
     _pusherClient.Connected += OnConnected;
 }
        public LiquidQuoineSocketClient(LiquidQuoineSocketClientOptions options) : base(nameof(LiquidQuoineSocketClient), options, null)
        {
            authProvider = options.authenticationProvider;

            // Configure(options);
            log.Level     = LogVerbosity.Debug;
            _pusherClient = new Pusher(options.PushherAppId, new PusherOptions()
            {
                ProtocolNumber = 7,
                Version        = "4.4.0",
                Endpoint       = "tap.liquid.com",
                Encrypted      = true,
                Client         = "",
            });
            _pusherClient.ConnectionStateChanged += _pusherClient_ConnectionStateChanged;
            _pusherClient.Connected += _pusherClient_Connected;
            _pusherClient.Connect();
        }