发送心跳包

This commit is contained in:
John Smith
2018-05-13 23:49:32 +08:00
parent 1e58ad78fc
commit 203f503ecc
2 changed files with 59 additions and 21 deletions

View File

@@ -15,8 +15,11 @@ class MyBLiveClient(BLiveClient):
def main():
client = MyBLiveClient(6)
get_event_loop().run_until_complete(client.start())
loop = get_event_loop()
client = MyBLiveClient(6, loop)
# loop.call_later(5, lambda: client.stop())
client.start()
loop.close()
if __name__ == '__main__':