Class RpcKernel

The kernel is responsible for parsing the message header, redirecting to peer if necessary, loading the body parser, and encode/send outgoing messages.

Hierarchy

  • RpcKernel

Constructors

Properties

RpcKernelConnection: typeof RpcKernelConnection = RpcKernelConnection
autoInjector: boolean = false
connections: RpcKernelConnections = ...
controllers: Map<string, {
    controller: ClassType<any>;
    module: InjectorModule<any, InjectorModule<any, any>>;
}> = ...
injector: InjectorContext
logger: LoggerInterface = ...
onConnectionListeners: OnConnectionCallback[] = []
peerExchange: RpcPeerExchange = ...
security: RpcKernelSecurity = ...

Methods

  • This registers the controller and no custom InjectorContext was given adds it as provider to the injector.

    Note: Controllers can not be added to the injector when the injector was already built.

    Parameters

    • controller: ClassType<any>
    • Optional id: string | ControllerDefinition<any>
    • Optional module: InjectorModule<any, InjectorModule<any, any>>

    Returns void

Generated using TypeDoc