From 94a10e603f8645983d41626fa67ebdc57e8cf444 Mon Sep 17 00:00:00 2001 From: youxia <675567585@qq.com> Date: Wed, 16 Oct 2024 21:08:56 +0800 Subject: [PATCH] fix: server port --- packages/client/package.json | 2 +- packages/feiyun/package.json | 2 +- packages/handler/package.json | 2 +- packages/server/package.json | 2 +- packages/server/src/ws.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index cf6bfaf..81b3546 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,7 +1,7 @@ { "name": "@feiyun/client", "repository": "https://github.com/hxg2050/feiyun.git", - "version": "0.0.10", + "version": "0.0.11", "private": false, "type": "module", "main": "./src/index.ts", diff --git a/packages/feiyun/package.json b/packages/feiyun/package.json index 56126e3..c882994 100644 --- a/packages/feiyun/package.json +++ b/packages/feiyun/package.json @@ -1,7 +1,7 @@ { "name": "feiyun", "repository": "https://github.com/hxg2050/feiyun.git", - "version": "0.3.1", + "version": "0.3.2", "private": false, "type": "module", "main": "./src/index.ts", diff --git a/packages/handler/package.json b/packages/handler/package.json index fb59021..e4aeebe 100644 --- a/packages/handler/package.json +++ b/packages/handler/package.json @@ -1,6 +1,6 @@ { "name": "@feiyun/handler", - "version": "0.1.1", + "version": "0.1.2", "license": "MIT", "type": "module", "main": "./src/index.ts", diff --git a/packages/server/package.json b/packages/server/package.json index ac88125..70e02b0 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -2,7 +2,7 @@ "name": "@feiyun/server", "repository": "https://github.com/hxg2050/feiyun.git", "private": false, - "version": "0.2.1", + "version": "0.2.2", "type": "module", "main": "./src/index.ts", "engines": { diff --git a/packages/server/src/ws.ts b/packages/server/src/ws.ts index e96dcd4..9c7a0a6 100644 --- a/packages/server/src/ws.ts +++ b/packages/server/src/ws.ts @@ -40,7 +40,7 @@ export const createWebsocketServer = (options: { port?: number, timeout?: number } Bun.serve({ - port: 3000, + port: options.port, fetch(req, server) { if ( server.upgrade(req, {