FynMesh API
    Preparing search index...

    Interface FynBusRoot

    Root bus owned by the kernel. Holds per-channel state and per-app facades. FynApps never see this class - they get a FynBusFacade via runtime.bus.

    interface FynBusRoot {
        disposeApp(name: string, version?: string): void;
        emitFrom(
            source: string,
            channelName: string,
            topic: string,
            payload: unknown,
        ): void;
        forApp(name: string, version?: string): FynBusFacade;
        forKernel(): FynBus;
        registerHandler(
            source: string,
            channelName: string,
            topic: string,
            handler: RpcHandler,
        ): Unsubscribe;
        requestFrom(
            source: string,
            channelName: string,
            topic: string,
            payload: unknown,
            options?: RequestOptions,
            onCancel?: (cancel: () => void) => () => void,
        ): Promise<any>;
        subscribeFrom(
            source: string,
            channelName: string,
            topic: string,
            handler: BusHandler<any>,
            options: SubscribeOptions | undefined,
            once: boolean,
            onAutoRemove?: () => void,
        ): Unsubscribe;
    }
    Index
    • Parameters

      • name: string
      • Optionalversion: string

      Returns void

    • Parameters

      • source: string
      • channelName: string
      • topic: string
      • payload: unknown

      Returns void

    • Parameters

      • name: string
      • Optionalversion: string

      Returns FynBusFacade

    • Returns FynBus

    • Parameters

      • source: string
      • channelName: string
      • topic: string
      • handler: RpcHandler

      Returns Unsubscribe

    • Parameters

      • source: string
      • channelName: string
      • topic: string
      • payload: unknown
      • Optionaloptions: RequestOptions
      • OptionalonCancel: (cancel: () => void) => () => void

      Returns Promise<any>

    • Parameters

      • source: string
      • channelName: string
      • topic: string
      • handler: BusHandler<any>
      • options: SubscribeOptions | undefined
      • once: boolean
      • OptionalonAutoRemove: () => void

      Returns Unsubscribe