Skip to content

Commit

Permalink
da jaunt gon jaunt soon
Browse files Browse the repository at this point in the history
  • Loading branch information
EdzmLeGoat committed Jan 17, 2025
1 parent c97fdee commit 95a39e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/deploy/autoscore/ntsetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ class NT4_Client {

this.clientIdx = 449; //Not great, but using it for now

var port = 8080;
var port = 5810;
var prefix = "ws://";

this.serverAddr = prefix + this.serverBaseAddr + ":" + port.toString() + "/nt/" + "JSClient_" + this.clientIdx.toString();
Expand Down
17 changes: 9 additions & 8 deletions src/main/deploy/autoscore/robotCommunicationBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
// using `window.location.hostname` causes the client to open a
// NT connection on the same machine as is serving the website.
// It could be hardcoded to point at a roboRIO if needed.
// var nt4Client = new NT4_Client(
// window.location.hostname,
// topicAnnounceHandler,
// topicUnannounceHandler,
// valueUpdateHandler,
// onConnect,
// onDisconnect
// );
console.log(window.location.hostname);
var nt4Client = new NT4_Client(
window.location.hostname,
topicAnnounceHandler,
topicUnannounceHandler,
valueUpdateHandler,
onConnect,
onDisconnect
);
//nt4client IMPORTANT methods
/*
subscribeTopicNames : list of topics name to subscribe to
Expand Down

0 comments on commit 95a39e4

Please sign in to comment.