Options
All
  • Public
  • Public/Protected
  • All
Menu

This is the Gadget API client library for:

_ _ | |__ | | ___ __ _ | '_ | |/ _ \ / ` | | |) | | () | (| | |.__/||_/ _, | |/

Built for environment "Development" at version 23 API docs: https://docs.gadget.dev/api/blog Edit this app here: https://blog.gadget.dev/edit

Hierarchy

  • GadgetConnection

Index

Constructors

Properties

_fetchImplementation: any
authenticationMode: AuthenticationMode
baseClient: any
baseSubscriptionClient: any
currentTransaction: any
disposeClient: any
endpoint: any
environment: any
fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)

Type declaration

    • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
    • fetch wrapper that applies Gadget's session token logic on the request and retrieves it from the reply

      Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

newBaseClient: any
newSubscriptionClient: any
options: GadgetConnectionOptions
requestHeaders: any
resetClients: any
sessionTokenStore?: any
subscriptionClientOptions?: any
transaction: { <T>(options: GadgetSubscriptionClientOptions, run: TransactionRun<T>): Promise<T>; <T>(run: TransactionRun<T>): Promise<T> }

Type declaration

    • <T>(options: GadgetSubscriptionClientOptions, run: TransactionRun<T>): Promise<T>
    • <T>(run: TransactionRun<T>): Promise<T>
    • Type Parameters

      • T

      Parameters

      • options: GadgetSubscriptionClientOptions
      • run: TransactionRun<T>

      Returns Promise<T>

    • Type Parameters

      • T

      Parameters

      • run: TransactionRun<T>

      Returns Promise<T>

waitForOpenedConnection: any
websocketImplementation: any
websocketsEndpoint: any

Accessors

  • get currentClient(): Client
  • Returns Client

  • set fetchImplementation(implementation: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)): void
  • Parameters

    • implementation: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)
        • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optional init: RequestInit

          Returns Promise<Response>

    Returns void

Methods

  • close(): void
  • Returns void

  • Change the authentication mode settings for this connection imperatively.

    Parameters

    Returns void

Generated using TypeDoc