@donkeylabs/server 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkeylabs/server",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "type": "module",
5
5
  "description": "Type-safe plugin system for building RPC-style APIs with Bun",
6
6
  "main": "./src/index.ts",
package/src/server.ts CHANGED
@@ -1278,6 +1278,7 @@ ${factoryFunction}
1278
1278
  Bun.serve({
1279
1279
  port: currentPort,
1280
1280
  fetch: fetchHandler,
1281
+ idleTimeout: 255, // Max value (255 seconds) for SSE/long-lived connections
1281
1282
  });
1282
1283
  // Update the actual port we're running on
1283
1284
  this.port = currentPort;