Skip to content

Commit

Permalink
Update src/fishkit/server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc authored Nov 6, 2024
1 parent fb4524e commit 430ca9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fishkit/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function createServer(opts: ServerOpts) {
console.log(`Server is running on ${protocol}//${host}:${_port}`);
});

if (opts?.hmr) {
if (opts.hmr) {
// prevent first websocket auto disconnected
server.on('upgrade', wsProxy!.upgrade);
}
Expand Down

0 comments on commit 430ca9f

Please sign in to comment.