Skip to content

Commit

Permalink
Merge pull request #11 from hxg2050/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hxg2050 authored Oct 16, 2024
2 parents b0e7b28 + 94a10e6 commit e1cfc3f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/feiyun/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/handler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@feiyun/handler",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"type": "module",
"main": "./src/index.ts",
Expand Down
10 changes: 10 additions & 0 deletions packages/server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 飞云服务端

## 快速开始
使用`Feiyun`创建一个长连接服务端应用
```ts
const app = new Feiyun({
port: 3000,
});
app.listen();
```
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const createWebsocketServer = (options: { port?: number, timeout?: number
}

Bun.serve<WebSocketData>({
port: 3000,
port: options.port,
fetch(req, server) {
if (
server.upgrade(req, {
Expand Down

0 comments on commit e1cfc3f

Please sign in to comment.