public void StartReceivingNewMessage() { this.receiveMessagesCancellationTokenSource = new CancellationTokenSource(); var inputStream = new ReactiveClientInputStream( this.WebSocket, this.reactiveConnection, this, CancellationTokenSource.CreateLinkedTokenSource(this.cancellationToken, this.receiveMessagesCancellationTokenSource.Token).Token); inputStream.StartReceiving(); }
void IReactiveClientConnectionCallback.MessageReceiveDone(ReactiveClientInputStream stream) { this.StartReceivingNewMessage(); }