Skip to content

Commit d889fe9

Browse files
Get Information from Switcher
1 parent 80e83c3 commit d889fe9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Client/src/App.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ export default {
161161
this.logMessage(
162162
`Sending message '${message}' to peer ${peer} through router ${router}.`
163163
);
164+
},
165+
getInformationFromSwitcher: function () {
166+
// Get information from switcher
167+
// let sendMessage = Buffer.from("UDP CONNETION DATA");
168+
console.log("getting information from switcher");
169+
this.sendMessage(
170+
3,
171+
"client connecting to switcher",
172+
"localhost",
173+
this.socketPort
174+
);
175+
},
164176
sendMessage: function (type, message, ip, port) {
165177
let sendMessage = this.prepareMessage(type, message);
166178
console.log({ sendMessage, cli: this.client });

0 commit comments

Comments
 (0)