[sim] Change default WS port number to 3300 (#2932)

This commit is contained in:
Peter Johnson
2020-12-10 20:39:14 -08:00
committed by GitHub
parent 65219f3093
commit 00b9ae77f9
3 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ bool HALSimWS::Initialize() {
return false;
}
} else {
m_port = 8080;
m_port = 3300;
}
const char* uri = std::getenv("HALSIMWS_URI");

View File

@@ -87,7 +87,7 @@ bool HALSimWeb::Initialize() {
return false;
}
} else {
m_port = 8080;
m_port = 3300;
}
return true;

View File

@@ -121,10 +121,10 @@ void WebServerClientTest::AttemptConnect() {
}
struct sockaddr_in dest;
uv::NameToAddr("localhost", 8080, &dest);
uv::NameToAddr("localhost", 3300, &dest);
m_tcp_client->Connect(dest, [this]() {
m_tcp_connected = true;
InitializeWebSocket("localhost", 8080, "/wpilibws");
InitializeWebSocket("localhost", 3300, "/wpilibws");
});
}