effect-rpc
    Preparing search index...

    Function createHandler

    • Creates and registers an RPC handler with a specific tag.

      Type Parameters

      • T extends RpcGroup<any>
      • TagName extends string

      Parameters

      • tag: TagName

        Unique identifier for the RPC handler

      • rpcGroup: T

        The RPC group/router to register

      Returns T

      The same RPC group that was passed in

      Consider using createHandlerRegistry() for better type safety without module augmentation.

      const helloHandler = createHandler('flamingo', helloRouter);