Skip to content

Commit

Permalink
chore: Update MCDU init log wording (#115)
Browse files Browse the repository at this point in the history
Update the MCDU gateway initialization log to clearly indicate that it
is the websocket gateway and ensure the correct protocol is displayed,
avoiding user confusion and preventing accidental attempts to open the
URL leading to a 404 page.
  • Loading branch information
alepouna authored May 7, 2024
1 parent 7fa1d4e commit 6b92760
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/server/src/interfaces/mcdu.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export class McduGateway implements OnGatewayInit, OnGatewayConnection {
async afterInit(server: Server) {
this.server = server;
this.logger.log('Remote MCDU websocket initialised');
this.logger.log(
`Initialised on http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,
);
this.logger.log(`Initialised websocket gateway on ws://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`);
}

handleConnection(client: WebSocket) {
Expand Down

0 comments on commit 6b92760

Please sign in to comment.