You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client package Angular contains the rsocket-js demo with rxjs adapter and server package Spring Boot contains the rsocket server.
You can clone this repo and launch in local the client and server.
When front is live, open your browser console and navigate to "Request Channel" button. You will see in the console that only "1, 3, 4, 5" is printed. (the second value is always ignored).
Possible Solution
When I look at log of the rsocket server, I can see that the first call make a request(1) and then a request(4) (which is corresponding to the prefetch RxRequestersFactory.requestChannel() arguments ?).
We can see that only 1, 3, 4 and 5 are passed in the onNext() method.
I think that this first request(1) is the possible problem and it's perhaps related to this code:
I have the same problem, second message is missing on the client->server stream.
About the possible solution, I believe the prefetch-parameter affects the server->client stream, not the client->server stream. On my setup I have unbounded requests on the server side (requesting the client->server stream, Spring Boot server).
Expected Behavior
When I call:
I want to see in the console:
Actual Behavior
When I call:
My console print:
It seems that no matter what data stream you provide to the method, the
second
value is always ignored.Steps to Reproduce
My RSocket server is written with Spring boot and my frontend is written in Angular You can retrieve my example by following this link: https://github.com/Florian935/rsocket-js-v1-alpha-client-server
client package Angular
contains the rsocket-js demo with rxjs adapter andserver package Spring Boot
contains the rsocket server.You can clone this repo and launch in local the client and server.
When front is live, open your browser console and navigate to "Request Channel" button. You will see in the console that only "1, 3, 4, 5" is printed. (the second value is always ignored).
Possible Solution
When I look at log of the rsocket server, I can see that the first call make a request(1) and then a request(4) (which is corresponding to the prefetch RxRequestersFactory.requestChannel() arguments ?).
We can see that only
1, 3, 4 and 5
are passed in theonNext()
method.I think that this first request(1) is the possible problem and it's perhaps related to this code:
rsocket-js/packages/rsocket-adapter-rxjs/src/Requesters.ts
Lines 133 to 159 in c6d6c47
Your Environment
Rsocket version used (Frontend: Angular 14):
Backend Spring Boot 2.7.1:
The text was updated successfully, but these errors were encountered: