remove main queue completely

This commit is contained in:
Timothy Pogue
2022-11-14 22:21:40 -07:00
parent 659c8c237f
commit d713af045f
3 changed files with 6 additions and 49 deletions

View File

@@ -30,8 +30,8 @@ class WebSocketChannel:
# Internal event to signify a closed websocket
self._closed = asyncio.Event()
# Throttle how fast we send messages
self._throttle = 0.01
# The subscribed message types
self._subscriptions: List[str] = []
# Wrap the WebSocket in the Serializing class
self._wrapped_ws = serializer_cls(self._websocket)
@@ -51,7 +51,6 @@ class WebSocketChannel:
"""
Send a message on the wrapped websocket
"""
await asyncio.sleep(self._throttle)
await self._wrapped_ws.send(message)
async def recv(self):