307 Commits

Author SHA1 Message Date
coffeepots
0dfb4be55c Rename rpcstreamserver and newStreamServer to rpcsocketserver and newSocketServer 2018-06-15 10:34:24 +01:00
coffeepots
30b97e7131 Remove delegate proc for processClient 2018-06-14 17:11:58 +01:00
coffeepots
20ddb0267f Remove redundant comment 2018-06-14 17:11:24 +01:00
coffeepots
e5c92dd207 Fix "cannot find init" as nimcrypto wasn't visible in ethprocs 2018-06-14 17:02:17 +01:00
coffeepots
bb07650f33 Update tests to use streamserver 2018-06-14 16:55:10 +01:00
coffeepots
7486a542ac Stream servers are now separated into new module 2018-06-14 16:53:57 +01:00
coffeepots
2f7580f082 Update to use rpc folder 2018-06-14 16:53:24 +01:00
coffeepots
33b1c61952 Move client and server to rpc folder 2018-06-14 16:52:41 +01:00
coffeepots
9f05f63054 Rename eth-rpc to rpc 2018-06-14 16:52:03 +01:00
coffeepots
5a5032a904 Temporarily disable logging to make tests green 2018-06-13 20:59:52 +01:00
coffeepots
a79351cbd7 Re-added malformed json error 2018-06-13 19:31:00 +01:00
coffeepots
9945228bf0 Add testerrors to all tests 2018-06-13 19:19:38 +01:00
coffeepots
ba53bd1237 Update errors to check results are as expected 2018-06-13 19:19:24 +01:00
coffeepots
6701fc7723 Improve tests, add check for invalid json 2018-06-13 19:13:04 +01:00
coffeepots
4143c2cc41 Debug func for getting next id, assert instead of if 2018-06-13 19:12:29 +01:00
coffeepots
374c5c02f8 Check id before anything else, complete future before raising if possible 2018-06-13 19:11:47 +01:00
coffeepots
4a164c026e Fix missing id in sendError, report error on wrong json version 2018-06-13 19:08:16 +01:00
coffeepots
8781bbbf4e Update testerrors ready for async tests (TODO) 2018-06-12 19:30:14 +01:00
coffeepots
e39008fe4a Removed extraneous debug output 2018-06-12 19:28:41 +01:00
coffeepots
5dba128947 Add max line read length, WIP changes to handle malformed json 2018-06-12 19:27:51 +01:00
coffeepots
937546b71d Add max line length 2018-06-12 19:26:24 +01:00
coffeepots
93c7a5577e var strings only for transport 2018-06-12 18:09:00 +01:00
coffeepots
2a6c1fb89a Remove debug echo 2018-06-12 16:53:13 +01:00
coffeepots
9613fe72a7 Efficiency of checkGet improved 2018-06-12 16:51:07 +01:00
coffeepots
1212861547 Add missing RPC test 2018-06-12 09:14:24 +01:00
coffeepots
687c577942 Merge asyncdispatch2 let->var changes 2018-06-12 09:13:02 +01:00
cheatfate
001195341c Fix client.nim for latest changes in asyncdispatch2. 2018-06-12 09:53:48 +03:00
cheatfate
1ff985b468 Fix for latest changes in asyncdispatch2. 2018-06-12 09:49:16 +03:00
coffeepots
b32660c1c9 Add module scope chronicles topic 2018-06-11 21:00:30 +01:00
coffeepots
da84d95d51 Update .nimble to include chronicles 2018-06-11 19:26:37 +01:00
coffeepots
4c38164688 WIP tests for errors 2018-06-11 19:26:16 +01:00
coffeepots
f9d20db511 Add chronicles logging and some custom errors 2018-06-11 18:48:12 +01:00
coffeepots
4daf3353aa
Merge pull request #16 from status-im/asyncdispatch2
Use asyncdispatch2 instead of asyncdispatch.
2018-06-11 09:45:15 +01:00
cheatfate
2b12f3699a Added reviews requirements. 2018-06-10 04:09:51 +03:00
cheatfate
7607cc4106 Fix connect(). 2018-06-08 09:31:51 +03:00
cheatfate
5548973168 Restart tests commit. 2018-06-07 21:42:24 +03:00
cheatfate
965b3df3e7 Strip string concatenation from new code. 2018-06-07 19:45:10 +03:00
cheatfate
739d303ccb Fix server creation. 2018-06-07 11:27:44 +03:00
cheatfate
aea1798897 Add close() procedure for RpcServer.
Fixed tests to stop/close server.
2018-06-07 11:20:33 +03:00
cheatfate
cbfe945fff Use asyncdispatch2 instead of asyncdispatch. 2018-06-07 10:02:14 +03:00
coffeepots
cc44cd257b Refactor to just client, server and jsonmarshal, add some comments 2018-06-05 14:03:58 +01:00
coffeepots
383654f1f5 wrapReply now returns string, includes terminator 2018-06-05 13:29:33 +01:00
coffeepots
53baf0bffc clientdispatch -> client, serverdispatch -> server, more error handling 2018-06-05 11:33:21 +01:00
coffeepots
179a6f6024 Remove concatenation 2018-06-05 11:12:55 +01:00
coffeepots
efeb972763 Update tests to use async better, no shared server 2018-06-05 10:45:54 +01:00
coffeepots
1ea23b4df2 Remove shared server 2018-06-05 10:43:46 +01:00
coffeepots
f8d0050dff
Merge pull request #14 from status-im/RemoveExportOnRpcProcs
Remove export on rpc procs
2018-06-04 15:44:43 +01:00
coffeepots
6bfb4facc2 Remove var ref on rpc macro and just take ref 2018-06-04 15:34:48 +01:00
coffeepots
622dcc8e5c Update documentation 2018-06-04 15:17:26 +01:00
coffeepots
db55114233 Change example to invoke `rpc from within procedure scope 2018-06-04 14:16:35 +01:00