• Register additional RPC callables on the worker parentPort message bus.

    Parameters

    • methods: Record<string, Function>

      Map of method name → function. Names must be unique; later registrations overwrite earlier ones for the same key (same behavior as Object.assign on the internal exposedMethods table).

    Returns void

    Built-ins such as methods, __on, __start, and __eventDone are registered by UtilClass construction. Third-party extensions (e.g. setTxPending) should use descriptive __-prefixed names to avoid collisions.