SongGuess
    Preparing search index...
    interface DispatchNamespace {
        get(
            name: string,
            args?: { [key: string]: any },
            options?: DynamicDispatchOptions,
        ): {
            connect(
                address: string | SocketAddress,
                options?: SocketOptions,
            ): Socket;
            fetch(
                input: URL | RequestInfo,
                init?: RequestInit<CfProperties<unknown>>,
            ): Promise<Response>;
        };
    }
    Index

    Methods

    Methods

    • Parameters

      • name: string

        Name of the Worker script.

      • Optionalargs: { [key: string]: any }

        Arguments to Worker script.

      • Optionaloptions: DynamicDispatchOptions

        Options for Dynamic Dispatch invocation.

      Returns {
          connect(
              address: string | SocketAddress,
              options?: SocketOptions,
          ): Socket;
          fetch(
              input: URL | RequestInfo,
              init?: RequestInit<CfProperties<unknown>>,
          ): Promise<Response>;
      }

      A Fetcher object that allows you to send requests to the Worker script.

      If the Worker script does not exist in this dispatch namespace, an error will be thrown.