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β€’11mo 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 πŸ”›πŸ”β€’11mo ago
the websocket use a random port like 27xxx
Unknown User
Unknown Userβ€’11mo ago
Message Not Public
Sign In & Join Server To View
Cetus πŸ”›πŸ”
Cetus πŸ”›πŸ”β€’11mo ago
it works thanks!
Unknown User
Unknown Userβ€’11mo ago
Message Not Public
Sign In & Join Server To View