Skip to content

Commit

Permalink
Merge pull request #5 from aturkenov/development
Browse files Browse the repository at this point in the history
bug with multiple Wampify instances fixed
  • Loading branch information
aturkenov authored Apr 25, 2022
2 parents 64b2d98 + f83e730 commit ec1b3f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name='wampify',
version='0.0.3',
version='0.0.6',
author='Aidar Turkenov',
author_email='a.k.turken0v@gmail.com',
description='Web Application Messaging Protocol Framework',
Expand Down
9 changes: 4 additions & 5 deletions wampify/wampify.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ def __init__(
self,
**KW
) -> None:
self._wamps = None
self._middlewares = []
self.settings = get_validated_settings(**KW)
self.wamps_factory = self.settings.wamps.factory
self.wamps_factory._settings = self.settings.wamps
self._bucket = WAMPBucket()
self.wamps_factory._bucket = self._bucket
self.wamps_factory.onChallenge = self.settings.wamps.on_challenge
self._wamps = self.wamps_factory()
self._wamps._settings = self.settings.wamps
self._bucket = WAMPBucket()
self._wamps._bucket = self._bucket
self._wamps.onChallenge = self.settings.wamps.on_challenge
logger.mount(self)

def add_middleware(
Expand Down

0 comments on commit ec1b3f2

Please sign in to comment.