From 31c3c17596a06a9be1b84a2a1efea898eec114be Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 15 Feb 2018 14:49:39 +0800 Subject: [PATCH] =?UTF-8?q?[Del]=E7=A7=BB=E9=99=A4test.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/WebTrader/test.py | 63 -------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 examples/WebTrader/test.py diff --git a/examples/WebTrader/test.py b/examples/WebTrader/test.py deleted file mode 100644 index 14dde900..00000000 --- a/examples/WebTrader/test.py +++ /dev/null @@ -1,63 +0,0 @@ -# encoding: UTF-8 - -from socketIO_client import SocketIO, BaseNamespace -from time import sleep -from threading import Thread -import logging - - -#---------------------------------------------------------------------- -def on_connect(): - """连接""" - print 'on connect' - -#---------------------------------------------------------------------- -def on_disconnect(): - """断开""" - print 'disconnect' - -#---------------------------------------------------------------------- -def on_reconnect(): - """重连""" - print 'reconnect' - -#---------------------------------------------------------------------- -def on_test(*args): - """测试""" - print 'on_test', args - - -######################################################################## -class TestNamespace(BaseNamespace): - """""" - - #---------------------------------------------------------------------- - def on_connect(self): - """连接""" - print 'on connect' - - #---------------------------------------------------------------------- - def on_disconnect(self): - """断开""" - print 'disconnect' - - #---------------------------------------------------------------------- - def on_reconnect(self): - """重连""" - print 'reconnect' - - #---------------------------------------------------------------------- - def on_message(self, *args): - """测试""" - print 'on_message', args - - - - -if __name__ == '__main__': - #logging.getLogger('socketIO-client').setLevel(logging.DEBUG) - #logging.basicConfig() - - sio = SocketIO('127.0.0.1', 5000, TestNamespace, transports='websocket') - sio.wait() - \ No newline at end of file