@audiotool/nexus - v0.0.17
    Preparing search index...

    Function createNodeTransport

    • Create a transport for Node.js.

      Pass this to createAudiotoolClient when running in Node.js. This transport uses HTTP/2 and properly manages TCP connection pools, ensuring your process exits cleanly when done rather than hanging for minutes waiting for idle connections to timeout.

      Returns TransportFactory

      import { createAudiotoolClient, createServerAuth } from "@audiotool/nexus"
      import { createNodeTransport, createDiskWasmLoader } from "@audiotool/nexus/node"

      const client = await createAudiotoolClient({
      auth: createServerAuth({ accessToken, refreshToken, expiresAt, clientId }),
      transport: createNodeTransport(),
      wasm: createDiskWasmLoader(),
      })

      const projects = await client.projects.listProjects({})