You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Transports provide access to runtime-specific APIs.
4
+
weight: 6
5
+
---
6
+
7
+
By default, Zeta uses `createFetchTransport`. It detects your runtime and provides a minimal transport that supports Bun and Deno.
8
+
9
+
## Runtime-specific Decorations
10
+
11
+
The default fetch transport not provide access to runtime-specific APIs. For example, in Bun, you use the `server` arg to setup websockets or get the request IP address:
12
+
13
+
```ts
14
+
Bun.serve({
15
+
fetch: (request, server) => {
16
+
const ip =server.requestIP(request);
17
+
// ...
18
+
},
19
+
});
20
+
```
21
+
22
+
To access the same object, you need to provide a custom `transport` then transport-specific APIs will be available in the request context:
0 commit comments