Maps external signals to service methods.
Parameters:
signalName(string): External signal identifiermethodName(string, optional): Service method name (defaults to signalName)paramTransformer(function, optional): Transform incoming parametersresultTransformer(function, optional): Transform outgoing results
Common options for all signal routers.
Fields:
before/afterhooksdebug(boolean)eventPattern(string)accessControl(ACL rules)
Options: SignalRouterOptions + servers?: string[] + reconnect?: { enabled?, maxAttempts?, timeWaitMs?, jitterMs?, jitterTlsMs?, waitOnFirstConnect?, lazyConnect? }
Options: SignalRouterOptions
Options: SignalRouterOptions + port?, path?, cors?, serviceName?, discovery?
Options: SignalRouterOptions
NevoNatsClient(methods:query,emit,publish,subscribe,broadcast,getAvailableServices,getDiscoveredServices,isServiceAvailable)NatsClientBase- base class with the same protected methodscreateNevoNatsClient(serviceNames, options)- Nest provider (NEVO_NATS_CLIENT)createNatsMicroservice(options)- Nest bootstrap for NATS transport
NevoNatsClientOptions.reconnect:
enabled?: boolean(defaulttrue)maxAttempts?: number(default-1)timeWaitMs?: number(default5000)jitterMs?: numberjitterTlsMs?: numberwaitOnFirstConnect?: booleanlazyConnect?: boolean(iftrue, setswaitOnFirstConnecttofalseby default)
NevoKafkaClient(methods:query,emit,publish,subscribe,broadcast,getAvailableServices,getDiscoveredServices,isServiceAvailable)KafkaClientBase- base class with the same protected methodscreateNevoKafkaClient(serviceNames, options)- Nest provider (NEVO_KAFKA_CLIENT)createKafkaMicroservice(options)- Nest bootstrap for Kafka transport
NevoSocketClient(methods:query,emit,publish,subscribe,broadcast,getAvailableServices,getDiscoveredServices,isServiceAvailable)SocketClientBase- base class with the same protected methodscreateNevoSocketClient(serviceUrls, options)- Nest provider (NEVO_SOCKET_CLIENT)createSocketMicroservice(options)- Nest bootstrap for Socket.IO transport
NevoHttpClient(methods:query,emit,publish,subscribe,broadcast,getAvailableServices,getDiscoveredServices,isServiceAvailable)HttpClientBase- base class with the same protected methodscreateNevoHttpClient(serviceUrls, options)- Nest provider (NEVO_HTTP_CLIENT)createHttpMicroservice(options)- Nest bootstrap for HTTP transportHttpTransportController- adds HTTP/SSE endpoints:POST /:service-eventsfor query/emitPOST /__nevo/publishandGET /__nevo/subscribefor subscriptionsPOST /__broadcastandGET /__broadcastPOST /__nevo.discoveryandGET /__nevo.discovery