Skip to content

Commit a861663

Browse files
Set current router when received information about client
1 parent 0ededcc commit a861663

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Server/src/Router.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Router.on('message', (msg, senderInfo) => {
5050
case 4:
5151
// Type 4: Message from Server - received information about a Client
5252
console.log("Switcher has sent information about a Client");
53+
54+
currentRouter = receivedMessage.message;
5355
break;
5456
case 5:
5557
// Type 5: Message from Client - received message instructions from Client to send message over the network

0 commit comments

Comments
 (0)