Function prepareLoopbackProtocolHandler
- prepareLoopbackProtocolHandler(zone, powers): ((instancePrefix?: string) => Guarded<{
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
onConnect(_port: any, localAddr: string, remoteAddr: string): PromiseVow<AttemptDescription>;
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
}>) Parameters
- zone: Zone
- powers: VowTools
Returns ((instancePrefix?: string) => Guarded<{
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
onConnect(_port: any, localAddr: string, remoteAddr: string): PromiseVow<AttemptDescription>;
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
}>)
- (instancePrefix?): Guarded<{
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
onConnect(_port: any, localAddr: string, remoteAddr: string): PromiseVow<AttemptDescription>;
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
}> Parameters
Optional
instancePrefix: string
Returns Guarded<{
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
onConnect(_port: any, localAddr: string, remoteAddr: string): PromiseVow<AttemptDescription>;
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
}>
Create a protocol handler that just connects to itself.