@mantiq/realtime 0.5.20 → 0.5.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantiq/realtime",
3
- "version": "0.5.20",
3
+ "version": "0.5.22",
4
4
  "description": "WebSocket, SSE, channels, broadcasting",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,7 +35,9 @@ export class ChannelManager {
35
35
  * The pattern is matched against the base name (without the prefix).
36
36
  */
37
37
  authorize(pattern: string, callback: ChannelAuthorizer): void {
38
- this.authorizers.set(pattern, callback)
38
+ // Strip channel-type prefix so the pattern matches against baseName
39
+ const { baseName } = parseChannelName(pattern)
40
+ this.authorizers.set(baseName, callback)
39
41
  }
40
42
 
41
43
  // ── Subscribe / Unsubscribe ─────────────────────────────────────────────