-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feature: Sending notifications from a server to a client #1
Comments
Thank you for your interest in the library! Could you elaborate a little more about your use case? If I understand the protocol correctly, the server must not send anything back to the client to a notification request. Do you want to use |
There are client/server apps which communicate over web sockets using JSON-RPC. Clients perform some server's methods and listen for a few server's notifications. Since a web socket is a bidirectional transport nothing blocks to push events from a server to clients :) JSON-RPC 2.0 specification describes client and server only as roles for peers which is mainly used to illustrate request-response flow:
It sounds like it may require to combine all stuff in a single library, so it'll be a good start if |
Thanks for the explanation! It seems to me that in your use case it makes sense to include the client library to your server code base, because it plays two roles: a receiver and a sender. To be honest, I don't have plans to build an uber-jar with both parts, because I presume most of users require either the client or the server implementation. Nevertheless, I will think about simplifying |
Hi! Thank you for the library!
It would be great to have an ability to build notifications using
simple-json-rpc-server
jar only.Now I have to include
simple-json-rpc-client
dependency and useJsonRpcClient
withNotificationRequestBuilder
only for building a notification. I also have to emulateTransport
forJsonRpcClient
. All I need for this case is havingNotificationRequestBuilder
in the server jar which can build a notification in a string form.The text was updated successfully, but these errors were encountered: