UNPKG

@arcjet/transport

Version:

Transport mechanisms for the Arcjet protocol

13 lines (10 loc) 395 B
import { createConnectTransport } from '@connectrpc/connect-web'; // This file is used when running in Bun. // It uses DOM based APIs (`@connectrpc/connect-web`) to connect to the API. // Bun slightly differs in how it implements Node APIs and that causes problems. function createTransport(baseUrl) { return createConnectTransport({ baseUrl, }); } export { createTransport };