예제 #1
0
 async def _md_handler(self):
     async for pack in self.md_recv_chan:
         await self.md_send_chan.send({
                                          "aid": "peek_message"
                                      })
         for d in pack.get("data", []):
             TqApi._merge_diff(self.data, d, self.api._prototype, False)
예제 #2
0
 async def _ws_handler(self):
     async for pack in self.ws_recv_chan:
         for d in pack.get("data", []):
             TqApi._merge_diff(self.data, d, self.api.prototype)