Skip to content

Commit 085f381

Browse files
committed
Reconnection bug.
1 parent bb5faf3 commit 085f381

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,15 @@ Use your imagination.
4545
# Dependencies
4646

4747
# Installation
48-
#### Pypi (most stable)
49-
```python
50-
pip install bittrex-websocket-aio
51-
```
52-
#### Github (master)
48+
49+
The library can be installed through Github and PyPi. For the latest updates, use Github.
50+
5351
```python
5452
pip install git+https://github.com/slazarov/python-bittrex-websocket-aio.git
55-
```
56-
#### Github (work in progress branch)
57-
```python
5853
pip install git+https://github.com/slazarov/python-bittrex-websocket-aio.git@next-version-number
54+
pip install bittrex-websocket-aio
5955
```
56+
6057
# Methods
6158
#### Subscribe Methods
6259
```python
@@ -141,10 +138,10 @@ def disable_log():
141138

142139
# Message channels
143140
```python
144-
def on_public(self, msg):
141+
async def on_public(self, msg):
145142
# The main channel for all public methods.
146143

147-
def on_private(self, msg):
144+
async def on_private(self, msg):
148145
# The main channel for all private methods.
149146

150147
def on_error(self, error):

bittrex_websocket/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
from bittrex_websocket import _logger
12
from bittrex_websocket.websocket_client import BittrexSocket

bittrex_websocket/websocket_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _connection_handler(self):
7575
logger.error('{}. Initiating reconnection procedure'.format(e.args[0]))
7676
events = []
7777
for item in self.invokes:
78-
event = SubscribeEvent([item['ticker']], item['invoke'])
78+
event = SubscribeEvent(item['invoke'], [item['ticker']])
7979
events.append(event)
8080
# Reset previous connection
8181
self.invokes, self.connection = [], None

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name='bittrex-websocket-aio',
14-
version='0.0.0.2.2',
14+
version='0.0.0.2.3',
1515
author='Stanislav Lazarov',
1616
author_email='[email protected]',
1717
license='MIT',

0 commit comments

Comments
 (0)