Skip to content

Commit

Permalink
fix: change server port
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex-82 committed Aug 19, 2024
1 parent 23a3e2f commit 84febef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const app = express();

app.use("/", express.static(path.resolve(import.meta.dirname, "./client")));

const expressServer = app.listen(80); // regular http server using node express which serves your webpage
const expressServer = app.listen(8080); // regular http server using node express which serves your webpage

expressServer.on("upgrade", async function upgrade(request, socket, head) {
//handling upgrade(http to websocekt) event
Expand Down

0 comments on commit 84febef

Please sign in to comment.