neoneo-go/pkg/services/rpcsrv
Anna Shaleva 6dbae7edc4 rpcclient: fix WS-client unsubscription process
Do not block subscribers until the unsubscription request to RPC server
is completed. Otherwise, another notification may be received from the
RPC server which will block the unsubscription process.

At the same time, fix event-based waiter. We must not block the receiver
channel during unsubscription because there's a chance that subsequent
event will be sent by the server. We need to read this event in order not
to block the WSClient's readloop.
2022-11-16 23:44:30 +03:00
..
params rpc: merge response and request under pkg/neorpc 2022-07-25 11:57:53 +03:00
testdata rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
client_test.go rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
error.go rpc: merge response and request under pkg/neorpc 2022-07-25 11:57:53 +03:00
prometheus.go rpcsrv: provide Prometheus histograms for calls 2022-11-09 13:26:45 +03:00
server.go rpcsrv: fix "subscribe" parameters handling 2022-11-16 14:05:13 +03:00
server_helper_test.go rpc/server: move to services/rpcsrv 2022-07-21 22:14:12 +03:00
server_test.go rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
subscription.go rpc: support multiple WSClient notification receivers 2022-10-24 06:09:36 +03:00
subscription_test.go rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
tokens.go rpc: merge response and request under pkg/neorpc 2022-07-25 11:57:53 +03:00
util.go rpc/server: move to services/rpcsrv 2022-07-21 22:14:12 +03:00