Ethan Frey
9d18cbe74e
Remove race condition between read go-routine and stop
8 years ago
Anton Kaliaev
ba5382b70e
open result&error channels on start
8 years ago
Anton Kaliaev
b0d2032488
use BaseService.OnReset method to recreate channels
8 years ago
Anton Kaliaev
d6587be7bc
[WSClient] allow for multiple restarts
needed for 3044f66ba9
See https://github.com/tendermint/tools/issues/6
8 years ago
Anton Kaliaev
afc39febed
close ws connection on Stop
8 years ago
Anton Kaliaev
5d19a008ce
add Call method to WSClient, which does proper encoding of params
8 years ago
Anton Kaliaev
e6c083f589
rename ClientURI -> URIClient, ClientJSONRPC -> JSONRPCClient (Refs #4 )
8 years ago
Ethan Frey
715f78e26a
Properly encode json.RawMessage
8 years ago
Anton Kaliaev
db69845ded
introduce errors pkg
8 years ago
Anton Kaliaev
05e1a22d5b
encode params before sending in JSONRPC
8 years ago
Anton Kaliaev
22ba8bdef8
fix Call method signature in HTTPClient interface
8 years ago
Anton Kaliaev
26ccb4c94a
remove private call methods
Q: what was the reason to create them?
8 years ago
Anton Kaliaev
66867bf949
remove "rpc" prefix from package imports
8 years ago
Anton Kaliaev
e1d5873bdf
support key-value params in JSONRPC (Refs #1 )
More changes:
- remove Client interface (reason: empty)
- introduce HTTPClient interface, which can be used for both ClientURI
and ClientJSONRPC clients (so our users don't have to create their own) (Refs #8 )
- rename integration tests script to `integration_test.sh`
- do not update deps on `get_deps`
8 years ago
Matt Bell
86506cd4f8
Handle quoted and hex string type HTTP args for both 'string' and '[]byte' type function args
8 years ago
Matt Bell
34a806578a
Handle hex strings and quoted strings in HTTP params
Use 0x-prefixed hex strings in client
server: Decode hex string args
Encode all string args as 0x<hex> without trying to encode as JSON
Added tests for special string arguments
Fix server handling quoted string args
Added string arg handling test cases to bash test script
8 years ago
Jae Kwon
161e36fd56
QuitService->BaseService
8 years ago
Ethan Buchman
855255d73e
use EventSwitch interface; less logging
8 years ago
Ethan Buchman
479510be0e
support full urls (with eg tcp:// prefix)
8 years ago
Ethan Buchman
e8538d606a
add blank client interface
9 years ago
Ethan Buchman
1410693eae
support unix domain websockets
9 years ago
Ethan Buchman
74130008f7
deduplicate dialFunc
9 years ago
Ethan Buchman
6607232a5d
add support for unix sockets
9 years ago
Jae Kwon
1370f89864
Fix bug in receiveEventsRoutine error handling
9 years ago
Ethan Buchman
45f57198cc
client: wsc.String()
9 years ago
Ethan Buchman
fbc5ac8052
print method in client log
9 years ago
Ethan Buchman
91c734d02e
client: ResultsCh chan json.RawMessage, ErrorsCh
9 years ago
Ethan Buchman
aff561d8c3
RPCResponse.Result is json.RawMessage
9 years ago
Ethan Buchman
0bcae125c2
use comma separated string for arg names
9 years ago
Ethan Buchman
3d59e13dd8
move from tendermint/tendermint
9 years ago