Skip to main content

Module topic

Module topic 

Source
Expand description

Topic pattern matching for event routing.

Supports wildcard patterns for flexible event subscription:

  • * matches a single segment (e.g., "user.*" matches "user.created" but not "user.foo.bar")
  • ** matches multiple segments (e.g., "user.**" matches "user.created" and "user.foo.bar")
  • Exact match when no wildcards are present

Functionsยง

matches
Match a topic pattern against a concrete topic name.