Skip to content

Commit

Permalink
Update Version 1.1.6.24
Browse files Browse the repository at this point in the history
  • Loading branch information
uJhin committed Jan 26, 2021
1 parent 7c7c2a8 commit 05f9606
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upbit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__all__ = ['client', 'websocket']
__module_name__ = 'upbit-client'

__version__ = '1.1.6.23'
__version__ = '1.1.6.24'
__released_version__ = Version.get_versions(__module_name__)
__latest_version__ = __released_version__[0]

Expand Down
12 changes: 10 additions & 2 deletions upbit/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@

class UpbitWebSocket:

def __init__(self, uri=None):
def __init__(self, uri=None, ping_inverval=None, ping_timeout=None):
self.__uri = uri if uri else WEBSOCKET_URI
self.__conn = websockets.connect(self.URI)
self.__conn = websockets.connect(
uri=self.URI,
ping_interval=ping_inverval,
ping_timeout=ping_timeout
)

@property
def URI(self):
Expand All @@ -26,6 +30,10 @@ def URI(self, uri):
@property
def Connection(self):
return self.__conn

@property
def Connection(self, conn):
self.__conn = conn

@staticmethod
def generate_orderbook_codes(
Expand Down

0 comments on commit 05f9606

Please sign in to comment.