import { type ServiceGroup } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";
Methods
addEndpoint(name: string, opts?: ServiceHandler | EndpointOptions): QueuedIterator<ServiceMsg>
The name of the endpoint must be a simple subject token with no wildcards
addGroup(subject?: string, queue?: string): ServiceGroup
A group is a subject prefix from which endpoints can be added. Can be empty to allow for prefixes or tokens that are set at runtime without requiring editing of the service. Note that an optional queue can be specified, all endpoints added to the group, will use the specified queue unless the endpoint overrides it. see EndpointOptions and ServiceConfig.