Commit Graph
32 Commits
Author SHA1 Message Date
Ethan BuchmanandGitHub 4671c44b2d Merge pull request #13 from tendermint/allow-for-multiple-restarts
[WSClient] allow for multiple restarts
2017-04-12 19:32:24 -04:00
Ethan BuchmanandGitHub 052c2c1575 Merge pull request #11 from tendermint/feature/refactor-tests
WSClient failing to echo bytes
2017-04-12 19:32:14 -04:00
Ethan Frey 9d18cbe74e Remove race condition between read go-routine and stop 2017-04-11 13:38:15 +02:00
Anton Kaliaev ba5382b70e open result&error channels on start 2017-03-28 14:17:40 +04:00
Anton Kaliaev b0d2032488 use BaseService.OnReset method to recreate channels 2017-03-28 14:01:22 +04:00
Anton Kaliaev d6587be7bc [WSClient] allow for multiple restarts
needed for https://github.com/tendermint/tools/pull/13/commits/3044f66ba90694927fb22ea5267de2a90bb3281b
See https://github.com/tendermint/tools/issues/6
2017-03-21 22:08:08 +04:00
Anton Kaliaev afc39febed close ws connection on Stop 2017-03-21 22:02:25 +04:00
Anton Kaliaev 5d19a008ce add Call method to WSClient, which does proper encoding of params 2017-03-10 15:33:45 +04:00
Anton Kaliaev e6c083f589 rename ClientURI -> URIClient, ClientJSONRPC -> JSONRPCClient (Refs #4) 2017-03-10 10:41:10 +04:00
Ethan FreyandAnton Kaliaev 715f78e26a Properly encode json.RawMessage 2017-03-10 10:20:38 +04:00
Anton Kaliaev db69845ded introduce errors pkg 2017-03-09 19:01:37 +04:00
Anton Kaliaev 05e1a22d5b encode params before sending in JSONRPC 2017-03-09 13:46:48 +04:00
Anton Kaliaev 22ba8bdef8 fix Call method signature in HTTPClient interface 2017-03-08 10:26:13 +04:00
Anton Kaliaev 26ccb4c94a remove private call methods
Q: what was the reason to create them?
2017-03-07 19:27:52 +04:00
Anton Kaliaev 66867bf949 remove "rpc" prefix from package imports 2017-03-07 19:27:32 +04:00
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`
2017-03-07 19:27:27 +04:00
Matt Bell 86506cd4f8 Handle quoted and hex string type HTTP args for both 'string' and '[]byte' type function args 2017-01-07 20:40:29 -08:00
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
2017-01-07 13:59:33 -08:00
Jae Kwon 161e36fd56 QuitService->BaseService 2016-10-28 12:04:58 -07:00
Ethan Buchman 855255d73e use EventSwitch interface; less logging 2016-10-10 03:22:34 -04:00
Ethan Buchman 479510be0e support full urls (with eg tcp:// prefix) 2016-08-10 01:13:13 -04:00
Ethan Buchman e8538d606a add blank client interface 2016-05-04 10:39:43 -04:00
Ethan Buchman 1410693eae support unix domain websockets 2016-02-19 02:05:24 +00:00
Ethan Buchman 74130008f7 deduplicate dialFunc 2016-02-19 00:20:20 +00:00
Ethan Buchman 6607232a5d add support for unix sockets 2016-02-18 22:45:55 +00:00
Jae Kwon 1370f89864 Fix bug in receiveEventsRoutine error handling 2016-02-08 02:20:34 -08:00
Ethan Buchman 45f57198cc client: wsc.String() 2016-02-03 02:01:28 -05:00
Ethan Buchman fbc5ac8052 print method in client log 2016-01-21 23:03:39 -05:00
Ethan Buchman 91c734d02e client: ResultsCh chan json.RawMessage, ErrorsCh 2016-01-13 21:21:16 -05:00
Ethan Buchman aff561d8c3 RPCResponse.Result is json.RawMessage 2016-01-13 18:37:35 -05:00
Ethan Buchman 0bcae125c2 use comma separated string for arg names 2016-01-12 18:29:31 -05:00
Ethan Buchman 3d59e13dd8 move from tendermint/tendermint 2016-01-12 16:50:06 -05:00