From 788677370f516606ca65284df5e5b19b4ac7da0e Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 15 Oct 2018 04:45:41 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20WebsocketClient=E6=94=B9=E5=90=8D?= =?UTF-8?q?=E4=B8=BAWebSocketClient?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/api/base/WebSocketClientTest.py | 4 ++-- vnpy/api/websocket/WebSocketClient.py | 2 +- vnpy/api/websocket/__init__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/api/base/WebSocketClientTest.py b/tests/api/base/WebSocketClientTest.py index dc9651dd..8d931ecf 100644 --- a/tests/api/base/WebSocketClientTest.py +++ b/tests/api/base/WebSocketClientTest.py @@ -2,10 +2,10 @@ import unittest from Promise import Promise -from vnpy.api.websocket import WebsocketClient +from vnpy.api.websocket import WebSocketClient -class TestWebsocketClient(WebsocketClient): +class TestWebsocketClient(WebSocketClient): def __init__(self): host = 'wss://echo.websocket.org' diff --git a/vnpy/api/websocket/WebSocketClient.py b/vnpy/api/websocket/WebSocketClient.py index 3cde4ef7..e208ce8f 100644 --- a/vnpy/api/websocket/WebSocketClient.py +++ b/vnpy/api/websocket/WebSocketClient.py @@ -12,7 +12,7 @@ from threading import Thread, Lock import websocket -class WebsocketClient(object): +class WebSocketClient(object): """Websocket API""" #---------------------------------------------------------------------- diff --git a/vnpy/api/websocket/__init__.py b/vnpy/api/websocket/__init__.py index 3e58eeb4..5c44c43f 100644 --- a/vnpy/api/websocket/__init__.py +++ b/vnpy/api/websocket/__init__.py @@ -1 +1 @@ -from .WebSocketClient import WebsocketClient +from .WebSocketClient import WebSocketClient