-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Access] Add client id for subscriptions #6637
Comments
Thanks for making this issue @Guitarheroua. @illia-malachyn 's comment from the other thread:
My concern is that associating subscribe requests to responses on the basis of Presumably this is a potential scenario when a user wants to subscribe to the same topic multiple times, but with different parameters. It seems to me that either:
Maybe 2. is already a guarantee, and in this case this would not be an issue to worry about. But I just wanted to bring it up in the case that it isn't. |
Hey, @jribbink! I'm sorry for not getting back to you sooner. I think a second option would require more synchronization work on the WebSocket side and increase the complexity of maintaining order while keeping and sending requests/responses. The first option is the easiest to implement, and, as I see it, this is referred to as the "Correlation Identifier Pattern". Here’s how this could be implemented:
|
Another option is to embed request into response ( SubscribeMessageResponse will contain SubscribeMessageRequest ) I feel it is a bit cleaner and easier on the client side handling. ( considering subscription response will be the first message of the stream, but I think it has to be in any case ) |
This should be discussed with the FCL team due to the comment: #6630 (comment)
Update after meeting:
The text was updated successfully, but these errors were encountered: