memory#
- class litestar.channels.backends.memory.MemoryChannelsBackend#
Bases:
ChannelsBackendAn in-memory channels backend
- async publish(data: bytes, channels: Iterable[str]) None#
Publish
datatochannels. If a channel has not yet been subscribed to, this will be a no-op.- Parameters:
- Returns:
None
- Raises:
RuntimeError – If
on_startuphas not been called yet