Hello i've got a probleme with my websocketserver after a prod build, when i start with pm2 i've got this result :
tcp 0 0 127.0.0.11:46827 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8011 0.0.0.0:* LISTEN 35/node /workspace/
tcp6 0 0 :::8020 :::* LISTEN 35/node /workspace/
udp 0 0 127.0.0.11:57395 0.0.0.0:* -
My WebSocketServer in 8020 is only in ipv6
This is the configuration is use :
@WebSocketGateway(parseInt(process.env.NX_RC_API_WS!), { cors: '*:*' })
export class WebsocketService {
public client: Socket
@WebSocketServer() io: Server;
handleConnection(socket: Socket) {
Logger.log("A user is connected")
this.client = socket
}
....
}
Can someone help me please, i'm struggling for multiple day to make this to prod 😢