diff --git a/backend/webSocketGateway/src/webSocketGateway.js b/backend/webSocketGateway/src/webSocketGateway.js index 2b1c1584267a8c655c2f7827126efc17055d9056..0ff46b5a9e081640c5fed85167884e1c5c7aa04f 100644 --- a/backend/webSocketGateway/src/webSocketGateway.js +++ b/backend/webSocketGateway/src/webSocketGateway.js @@ -23,7 +23,7 @@ var target = '127.0.0.1:50051'; var count = 0; -class Connection{ +class ProjectionRequest{ constructor(ws,client,calls,lineAmount){ this.index = count; count += 1; @@ -36,7 +36,7 @@ class Connection{ wsServer.on('connection', function connection(ws) { console.log(`Client connected with websocket`); - var currConnection = new Connection(ws,null,null,0); + var currConnection = new ProjectionRequest(ws,null,null,0); ws.on('message', function incoming(message) { parseMessage(message, currConnection); });