import ServiceChannelTap from "./service.channel.tap"; export default class ServiceChannel { channel: string | symbol; service: string | symbol; /** * Holds the context for the handler */ context: any; /** * Whether or not this channel can * be reassigned */ locked: boolean; /** * Whether or not the the channel can * have taps listen for the route calls */ secure: boolean; /** * Holds a list channel taps that enable * to listen to requests made to the channel */ taps: ServiceChannelTap[]; /** * Creates the service channel * * @param channel The name of the channel */ constructor(channel: string | symbol, service: string | symbol); /** * Holds the handler for the channel */ handler: (...args: any[]) => any; }