Skip to main content

Container (core)

Classes

ControllerContainer

import { ControllerContainer } from '@hexajs-dev/core';
class ControllerContainer { ... }

Methods

destroy()

destroy(): void

registerMulticast()

registerMulticast(name: string, handler: BackgroundHandlerFn): (name: string, handler: BackgroundHandlerFn) => void

registerUnicast()

Called by the Bootstrap Generator

registerUnicast(name: string, handler: BackgroundHandlerFn): (name: string, handler: BackgroundHandlerFn) => void

setPipeRunner()

setPipeRunner(runner: HexaPipeRunner): (runner: HexaPipeRunner) => void

Types & Interfaces

BackgroundHandlerFn

import { BackgroundHandlerFn } from '@hexajs-dev/core';
type BackgroundHandlerFn = (payload: any, sender: unknown) => any | Promise<any>;