So we have noticed with the new release a heartbeat check or a constant warning every second:
(coherence) ClientCore: Connection attempt failed: already connected
Looking at the stack trace it doesn’t seem to be anywhere originating from our code:
Coherence.Log.Targets.UnityConsoleTarget:Log (Coherence.Log.LogLevel,string,System.ValueTuple`2<string, object>[],Coherence.Log.Logger) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Log/LogTargets/UnityConsoleTarget.cs:75)
Coherence.Log.Logger:BuildAndPrintLog (Coherence.Log.LogLevel,string,System.ValueTuple`2<string, object>[]) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Log/Logger.cs:72)
Coherence.Log.Logger:LogImpl (Coherence.Log.LogLevel,string,System.ValueTuple`2<string, object>[]) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Log/Logger.cs:224)
Coherence.Log.Logger:Warning (string,System.ValueTuple`2<string, object>[]) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Log/Logger.cs:159)
Coherence.Log.UnityLogger:Warning (string,System.ValueTuple`2<string, object>[]) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Log/UnityLogger.cs:93)
Coherence.Core.ClientCore:Connect (Coherence.Connection.EndpointData,Coherence.Common.ConnectionSettings,Coherence.Connection.ConnectionType) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Core/ClientCore.cs:176)
Coherence.Toolkit.CoherenceBridge:Connect (Coherence.Connection.EndpointData,Coherence.Connection.ConnectionType,bool,Coherence.Common.ConnectionSettings) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Toolkit/CoherenceBridge.cs:590)
Coherence.Toolkit.CoherenceBridge:Connect (Coherence.Connection.EndpointData,Coherence.Common.ConnectionSettings) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Toolkit/CoherenceBridge.cs:324)
Coherence.Toolkit.CoherenceBridge:JoinRoom (Coherence.Cloud.RoomData) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Toolkit/CoherenceBridge.cs:379)
Coherence.Cloud.LobbiesService:OnPlayStarted (string) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Runtime/Cloud/GameServices/Lobbies/LobbiesService.cs:660)
Coherence.Cloud.RequestFactory/<>c__DisplayClass27_0:<AddPushCallback>b__0 (int,string,string) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Runtime/Cloud/Requests/RequestFactory.cs:96)
Coherence.Runtime.WebSocket:HandleResponse (string) (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Runtime/WebSocket.cs:656)
Coherence.Runtime.WebSocket:Update () (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Runtime/WebSocket.cs:578)
Coherence.Cloud.RequestFactory:Coherence.Runtime.IUpdatable.Update () (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Runtime/Cloud/Requests/RequestFactory.cs:345)
Coherence.Runtime.Updater:Update () (at ./Library/PackageCache/io.coherence.sdk@1.2.1/Coherence.Runtime/Updater.cs:90)
The stack trace shows a handler call that then goes all the way to the warning. This is showing up on builds that we’ve had released that didn’t show this behavior. The release is on the 1.1.x version of cherence. So I don’t think this is related to the new coherence sdk version but something on the backend?