WebSocket server error: Port is already in use

hey, I'm trying to run two nuxt apps in a monorepo with pnpm. I first changed the port of one of my two apps to 3001.
devServer: {
port: 3001
}
devServer: {
port: 3001
}
But now there is an error with the websocket that encounters a conflict with the port. Do you have a solution?
5 Replies
StefanH
StefanHβ€’16mo ago
The websocket specifically? I don't know nuxt much but do websockets use the http port + 1? Could you try running on a different port like 3100?
Cetus πŸ”›πŸ”
Cetus πŸ”›πŸ”OPβ€’16mo ago
the websocket use a random port like 27xxx
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
Cetus πŸ”›πŸ”
Cetus πŸ”›πŸ”OPβ€’16mo ago
it works thanks!
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server