Skip to content

Commit

Permalink
fix(publish_manager): separation at server level for broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 30, 2023
1 parent f5799a5 commit ffd269d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/src/wslink/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import traceback

from wslink import schedule_coroutine
from wslink import publish as pub
from wslink.publish import PublishManager


class AbstractWebApp:
Expand Down Expand Up @@ -136,6 +136,7 @@ def __init__(self, protocol=None, web_app=None):
self.connections = {}
self.authentified_client_ids = set()
self.attachment_atomic = asyncio.Lock()
self.pub_manager = PublishManager()

# Build the rpc method dictionary, assuming we were given a serverprotocol
if self.getServerProtocol():
Expand Down Expand Up @@ -165,7 +166,7 @@ def getServerProtocol(self):

@property
def publishManager(self):
return pub.publishManager
return self.pub_manager

@property
def reverse_connection_client_id(self):
Expand Down

0 comments on commit ffd269d

Please sign in to comment.