Skip to content

Commit

Permalink
Patch aiorignalrcore to avoid reconnections
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Apr 21, 2021
1 parent 7309e56 commit 3fda559
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/dipdup/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
import asyncio

from aiosignalrcore.transport.websockets.reconnection import ConnectionStateChecker # type: ignore

__version__ = '0.1.0'


async def run(self):
while self.running:
await asyncio.sleep(self.keep_alive_interval)
await self.ping_function()


# FIXME: https://github.com/mandrewcito/signalrcore/pull/58
ConnectionStateChecker.run = run

0 comments on commit 3fda559

Please sign in to comment.