Function createService

  • Creates a service channel object with the given name, request schema, and response schema

    Returns

    The service channel object

    Type Parameters

    Parameters

    • name: string

      Name of the channel

    • Optional requestSchema: ZodType<T, ZodTypeDef, T>

      The schema of the request

    • Optional responseSchema: ZodType<R, ZodTypeDef, R>

      Optional schema for response, if not provided, the response will be void

    Returns ServiceChannel<T, R>

Generated using TypeDoc