Commit Graph

80 Commits

Author SHA1 Message Date
vn.py
64c1c3ccde [Add] Complete ib gateway development 2019-01-10 23:45:21 +08:00
vn.py
84eaeb8733 [Add] Add monitor into mainwindow 2019-01-09 22:36:48 +08:00
vn.py
be25b684a0 [Add] Start ib gateway development 2019-01-09 16:41:51 +08:00
nanoric
88002bc315 [Add] added travis script 2019-01-07 02:20:54 -04:00
vn.py
f7d5848758 [Del]clear all old files 2019-01-04 14:46:47 +08:00
G_will
ad42d4ddac 修改 travis 在 py3 时的语法错误 2018-11-01 14:01:36 +08:00
nanoric
a4118f3364 [Add] 在RestClient.addRequest中增加onError参数,可以重定向onError回调。
[Add] 在WebSocketClient, RestClient的错误处理函数中打印更多的详细信息
[Add] 增加RestClient.printExceptionDetail和WebSocketClient.printExceptionDetail,用于打印详细的错误信息
[Mod] 修改了对应的测试样例
2018-10-30 23:36:50 -04:00
nanoric
cab8fd1e0e [Mod] WebSocket改名为Websocket 2018-10-23 21:31:17 -04:00
nanoric
35518106a2 [Mod] 重构RestClient, WebSocketClient
主要有:
* beforeRequest改名为sign
* onFailed, onError由函数指针改为函数(利用Python的特性,可以重载,也可以仍然当函数指针用)
* sendData改名为sendBinary
* 优化了WebSocketClient的循环逻辑
2018-10-18 05:30:30 -04:00
nanoric
788677370f [Mod] WebsocketClient改名为WebSocketClient 2018-10-15 04:45:57 -04:00
nanoric
c50c31a6bd [Mod] sendRequest改名为sendPacket
和onPacket对应。
2018-10-15 04:37:55 -04:00
nanoric
4d7c3bf417 [Add] WebSocketClient:增加onDisconnected 2018-10-15 04:35:55 -04:00
nanoric
a55246eb77 [Mod] WebSocketClient.onMessage改名为onPacket,以免和正常WebSocket的onMessage搞混。 2018-10-15 04:30:06 -04:00
nanoric
a3129a8007 [Mod] sendReq改名为sendRequest(同步),addReq改名为addRequest(异步) 2018-10-15 03:12:05 -04:00
nanoric
6e0e1c116b [Mod] 将RestClient和WebClient移动到api文件夹中,并修改import方式 2018-10-11 22:53:48 -04:00
nanoric
b34dcf6a73 [Mod] Test使用with promise.catch():语法 2018-10-10 22:27:02 -04:00
nanoric
3f8e5f1099 [Add] Promise增加with self.catch():语法支持 2018-10-10 22:26:39 -04:00
nanoric
ab116d8f97 [Fix] 修复Promise抛出单个异常时get无法获取到正确的异常的错误 2018-10-10 22:10:15 -04:00
nanoric
6e71c59c06 [Mod] onFailed只接收两个参数,原来的data参数可以从req.response.raw读出 2018-10-10 22:09:20 -04:00
nanoric
e6f7781a47 [Mod] HttpClient改名为RestClient 2018-10-10 05:36:14 -04:00
nanoric
486e6055e6 [Mod] HttClient:修改对应的测试
[Del] 删除了HeadersAuthenticateHttpClient,因为不再需要了

该版本的测试可以通过
2018-10-10 03:59:13 -04:00
nanoric
7e56c3fd49 [Mod] Promise:增加对traceback的支持 2018-10-09 06:06:41 -04:00
nanoric
f3f2598c44 [Mod] 改名:将restful改名为network 2018-10-09 06:05:50 -04:00
nanoric
7d65170e53 [Mod] restful包改名为network
[Mod] RestfulClient改名为HttpClient
2018-10-07 22:31:34 -04:00
nanoric
8dcc785fd3 [Mod] 修改tests的引用结构,便于从其他项目引用 2018-10-07 04:43:58 -04:00
nanoric
c38a9fcabd [Mod] 修正RestfulClient和WebSocketClient的单元测试 2018-10-07 04:20:14 -04:00
nanoric
af71e57732 [Fix] 修正一个Bug:调用tests.Promise.set_exception后无法正常抛出异常 2018-10-07 03:42:01 -04:00
nanoric
142a40652d [Mod] WebsocketClient改名为WebSocketClient 2018-10-07 03:38:55 -04:00
nanoric
4af7be3e41 [Add] 增加WebsocketClient的单元测试 2018-10-07 03:35:12 -04:00
nanoric
6bf7837055 [Add] 增加RestfulClient的单元测试 2018-10-07 03:34:42 -04:00