Skip to content

Commit

Permalink
fix: reponse data
Browse files Browse the repository at this point in the history
  • Loading branch information
hxg2050 committed Feb 23, 2024
1 parent 5c99371 commit 70e96f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
export { FeiyunClient } from './client/FeiyunClient'
export { GameSocketClient } from './client/GameSocketClient'

export { Feiyun } from './server/feiyun'
export { Server } from './server/server'
export { Socket } from './server/socket'
export { GameSocket } from './server/GameSocket'
export { GameSocketServer } from './server/GameSocketServer'

export { ApiDoc, Handler, mapRoute, Method, Param, ParamType } from './server/reflect/route'
export { Socket } from './server/socket'
2 changes: 1 addition & 1 deletion src/server/feiyun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class Feiyun {
}

async responseHandler(ctx: Context) {
if (ctx.response) {
if (ctx.response.data) {
this.server.reply(ctx.socket.socket, ctx.request.id, ctx.response.data)
}
}
Expand Down

0 comments on commit 70e96f1

Please sign in to comment.