@urth/metatell-sdk - v0.1.0
    Preparing search index...

    Function createPluginScope

    • Create an independent resource scope without host or room dependencies.

      Cleanup errors never stop other cleanup or escape from a release function. Non-Error failures use a fixed message without inspecting their payload. Errors thrown by application-owned AbortSignal listeners are outside the cleanup contract and follow the platform's event dispatch behavior.

      Returns PluginScope

      const scope = createPluginScope();
      scope.addCleanup(on("chat:message", handleMessage));
      await scope.disposeAsync();