protected AjaxBasedTransport(string transportUrl, string urlSuffix, Polling.ReceiverFactory receiver, AjaxObjectFactory ajaxObject) : base(transportUrl, urlSuffix, CreateAjaxSender(ajaxObject), receiver, ajaxObject) { }
protected SenderReceiver(string transUrl, string urlSuffix, SenderDelegate senderFunc, Polling.ReceiverFactory receiver, AjaxObjectFactory ajaxObject) : base(transUrl, senderFunc) { var pollUrl = new Uri(transUrl).AddPath(urlSuffix); Log.Debug($"{nameof(SenderReceiver)}: {pollUrl}"); this._poll = new Polling(receiver, pollUrl.OriginalString, ajaxObject); this._poll.On("message", this.OnMessage); this._poll.Once("close", this.OnPollClose); }