Skip to content

parseSelectionPath

parseSelectionPath(system, path): string[] | null

Defined in: src/ActorSelection.ts:65

Parse an input string into path segments relative to /. Accepts two shapes:

  • absolute URI: “actor-ts:///user/foo/bar”
  • absolute path: “/user/foo/bar” or “user/foo/bar”

The system-name (if present) is verified to match the target system; mismatch returns null to indicate the path is meant for a different one.

ActorSystem

string | ActorPath

string[] | null