Skip to main content

createChannelLoader

@totemsdk/omnia-pool


@totemsdk/omnia-pool / createChannelLoader

Function: createChannelLoader()

createChannelLoader(store): (channelId) => Promise<OmniaChannel>

Build a loadChannel(channelId) port that reads a persisted channel snapshot and recovers the live OmniaChannel object.

Parameters

store

ChannelSnapshotStore

Returns

(channelId) => Promise<OmniaChannel>