We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4396e67 commit 0e41374Copy full SHA for 0e41374
Server/src/Router.ts
@@ -14,6 +14,18 @@ Router.on('error', (err) => {
14
});
15
16
// TODO: How is Client meant to find out what Routers are connected to Switcher and their IP and Port??
17
+interface Router {
18
+ routerIn?: String; // eg E1
19
+ routerOut?: String; // eg R2
20
+ routerId?: String; // eg R1
21
+ address?: String; // eg 127.0.0.1
22
+ port?: number; // eg 69902
23
+ forwardAddress?: string; // eg 127.0.0.1
24
+ forwardPort?: number; // eg 61984
25
+}
26
+
27
+let currentRouter: Router = {};
28
29
30
// Listen for incoming messages from Clients and the Switcher
31
Router.on('message', (msg, senderInfo) => {
0 commit comments