Function: matchChannel()
function matchChannel(pattern: string, channel: string): boolean;
Defined in: livelink.clients/livelink.agent/sources/data/util/channel.ts:15
Match a channel pattern against an event channel.
Patterns use MQTT-style topic wildcards over /-separated segments: + or * matches exactly
one segment, a trailing # matches the rest. A pattern without wildcards is an exact match.
matchChannel("uagv/+/visualization", "uagv/23070/visualization") // true
matchChannel("uagv/#", "uagv/23070/state") // true
matchChannel("file", "file") // true
Parameters
| Parameter | Type |
|---|---|
pattern | string |
channel | string |
Returns
boolean