Skip to content

Commit

Permalink
update server listen addr
Browse files Browse the repository at this point in the history
  • Loading branch information
ovnrain committed Aug 29, 2023
1 parent a1c6130 commit eb2be59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ server.on('error', onError);
server.on('listening', onListening);

function onListening() {
const addr = server.address();
const bind = typeof addr === 'string' ? 'pipe ' + addr : `port ${addr?.port}`;
console.log(`app listening on ${bind}!`);
console.log(`Server is running at http://localhost:${PORT}`);
}

function onError(error: ListenError) {
Expand Down

0 comments on commit eb2be59

Please sign in to comment.