Type alias MessageProvider

MessageProvider: (() => ReadBuffer)

The MessageProvider is emitted when a channel receives a new message. Listeners can invoke the provider to obtain a new ReadBuffer for the received message. This ensures that each listener has its own isolated ReadBuffer instance.

Type declaration