aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/src/server/mod.rs
Commit message (Collapse)AuthorAgeFiles
* use shadown variables to name clones and place them between {} when spawning ↵hozan232024-06-291
| | | | new tasks
* Improve async channels error handling and replace unbounded channels with ↵hozan232024-06-271
| | | | | | | | | | | bounded channels Remove all unbounded channels to prevent unbounded memory usage and potential crashes. Use `FuturesUnordered` for sending to multiple channels simultaneously. This prevents the sending loop from blocking if one channel is blocked, and helps handle errors properly.
* jsonrpc: add info logs when connecting/listening to endpointhozan232024-06-231
|
* jsonrpc/client: close the subscription channel when calling unsubscribehozan232024-06-221
|
* jsonrpc: use `ServerConfig` and `ClientConfig` as the inner field inhozan232024-06-221
| | | | `ServerBuilder` and `ClientBuilder`
* jsonrpc/client: fix subscription error when the subscriber cannot keep uphozan232024-06-211
| | | | | | Add a limit for receiving notifications for the subscription. If this limit is exceeded, the client will stop and raise an error. The limit is configurable when building a new client.
* jsonrpc/server: use weak pointer for Channel in subscriptionshozan232024-06-171
|
* jsonrpc/server: check for the jsonrpc version in the requesthozan232024-06-151
|
* jsonrpc: separate the RPC errors from the library implementation errorshozan232024-06-151
|
* jsonrpc: client use unbounded channels as buffer for sending requests & ↵hozan232024-06-141
| | | | clean up examples
* jsonrpc: spread out comments and clean uphozan232024-06-131
|
* jsonrpc/server: use queue with condvar instead of async channelshozan232024-05-301
|
* jsonrpc: enable concurrent requests in `Client`hozan232024-05-281
|
* p2p: WIP rpc server implementation for the p2p monitorhozan232024-05-271
|
* jsonrpc: remove subscriber field from Request & clean uphozan232024-05-231
|
* jsonrpc: spawn task when handle new requesthozan232024-05-231
|
* jsonrpc: support pubsubhozan232024-05-221