allow specifying channel send throttle

This commit is contained in:
Timothy Pogue
2022-11-27 13:14:49 -07:00
parent d2c8487ecf
commit 89338fa677
2 changed files with 10 additions and 3 deletions

View File

@@ -202,7 +202,11 @@ class ExternalMessageConsumer:
max_size=self.message_size_limit,
ping_interval=None
) as ws:
async with create_channel(ws, channel_id=name) as channel:
async with create_channel(
ws,
channel_id=name,
send_throttle=0.5
) as channel:
# Create the message stream for this channel
self._channel_streams[name] = MessageStream()