Don't send auth token twice

This commit is contained in:
Christoph Hagen 2023-12-05 22:55:45 +01:00
parent 6f8838c32b
commit 0a11d9ff27

View File

@ -45,7 +45,6 @@ void ServerConnection::didDisconnect() {
void ServerConnection::didConnect() { void ServerConnection::didConnect() {
isConnecting = false; isConnecting = false;
Serial.println("[INFO] Socket connected"); Serial.println("[INFO] Socket connected");
webSocket.sendTXT(configuration.key);
webSocket.enableHeartbeat(configuration.socketHeartbeatIntervalMs, configuration.socketHeartbeatTimeoutMs, configuration.socketHeartbeatFailureReconnectCount); webSocket.enableHeartbeat(configuration.socketHeartbeatIntervalMs, configuration.socketHeartbeatTimeoutMs, configuration.socketHeartbeatFailureReconnectCount);
} }