neo-go/pkg/rpcclient
Roman Khimov fcaa24f928 rpcclient: provide some exported error for disconnected WSClient
Regular Client doesn't care much about connections, because HTTP client's Do
method can reuse old ones or create additional ones on the fly. So one request
can fail and the next one easily succeed. WSClient is different, it works via
a single connection and if it breaks, it breaks forever for this
client. Callers will get some error on every request afterwards and it'd be
nice for this error to be the same so that API users could detect
disconnection this way too.

Related to nspcc-dev/neofs-node#2325.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2023-05-03 16:08:54 +03:00
..
actor config: use uint32 for validators/committee members count 2023-04-13 13:42:40 +03:00
gas *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
invoker Merge pull request #2957 from nspcc-dev/rm-go-17 2023-04-04 15:25:14 +03:00
management *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neo *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
nep11 *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
nep17 *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neptoken *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
nns *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
notary *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
oracle *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
policy *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
rolemgmt *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
unwrap *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
client.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
client_test.go rpcclient: expose endpoint (fixes #2912) 2023-02-15 08:29:44 +01:00
doc.go rpcclient: update documentation, mention subpackages 2022-09-08 14:33:04 +03:00
doc_test.go rpc/client: move to pkg/rpcclient 2022-07-21 22:39:53 +03:00
helper.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
local.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
local_test.go rpcclient: add Internal client for direct RPC server calls 2023-02-16 23:49:58 +03:00
native.go Merge pull request #2665 from nspcc-dev/notary-rpcclient 2022-08-30 12:43:13 +03:00
nep.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
nep11.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
nep17.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
policy.go rpcclient; deprecate more methods 2022-09-08 14:33:04 +03:00
rpc.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
rpc_test.go rpcclient: close WSClient subscriber on overflow 2023-04-25 11:42:17 +03:00
wsclient.go rpcclient: provide some exported error for disconnected WSClient 2023-05-03 16:08:54 +03:00
wsclient_test.go rpcclient: provide some exported error for disconnected WSClient 2023-05-03 16:08:54 +03:00