Use Header Login

Failure Modes
Switch to use proxied wss
This commit is contained in:
2022-10-22 17:16:02 +02:00
parent 176c43d5a6
commit 5af921f4cc
4 changed files with 37 additions and 19 deletions
+7
View File
@@ -56,6 +56,13 @@ namespace gaconnector
float trueHeading;
};
enum failures {
NONE,
AUTH,
DUPLICATESIM,
OTHER,
};
#pragma pack(pop) /* restore original alignment from stack */
} // namespace websocket
} // namespace gaconnector
+1
View File
@@ -28,6 +28,7 @@ namespace gaconnector
{
private:
bool isLoggedIn = false;
enum failures failureMode = failures::NONE;
char lastPath[513] = "";
char lastHash[2 * MD5LEN + 1] = "";
ix::WebSocket *webSocket = nullptr;