rsocket / rsocket-js

JavaScript implementation of RSocket
https://github.com/rsocket/rsocket-js
Apache License 2.0
594 stars 97 forks source link

fixes request channel to drop second element #244

Closed OlegDokuka closed 2 years ago

OlegDokuka commented 2 years ago

closes #234

unexpectedly, the index is a local variable per subscription, thus the second subscription starts indexing from 0 once again even though the element is a second one (index should be 1 in that case). Therefore, to overcome this problem the PR introduces a local variable to track the first element.

Signed-off-by: Oleh Dokuka odokuka@vmware.com Signed-off-by: Oleh Dokuka oleh.dokuka@icloud.com