Member Junction
    Preparing search index...

    Interface IRealtimeChannelServerDataAware

    Implemented by server-side channel plugins that need MJ data access for their session-start work. The host calls SetSessionDataContext once, after Initialize(ctx) and before OnSessionStarted(), with the SAME contextUser + provider the session authenticated on.

    interface IRealtimeChannelServerDataAware {
        SetSessionDataContext(
            contextUser: UserInfo,
            provider: IMetadataProvider,
        ): void;
    }

    Implemented by

    Index

    Methods

    • Hands the channel the session's MJ data context. Called exactly once per session by the host between Initialize(ctx) and OnSessionStarted(). Implementations should just stash the values for use in their own OnSessionStarted().

      Parameters

      • contextUser: UserInfo

        The user the realtime session is running as (for RunView / entity loads).

      • provider: IMetadataProvider

        The metadata provider the session authenticated on (multi-provider safe).

      Returns void