From 7aa5c8bdbf8cfcf99ae058ac207033a7bc723976 Mon Sep 17 00:00:00 2001
From: tudor <7089284+tudddorrr@users.noreply.github.com>
Date: Sat, 3 Jan 2026 02:53:22 +0000
Subject: [PATCH 1/4] bump websocket package version
---
.../Talo/Runtime/Vendor/com.mikeschweitzer.websocket | 2 +-
unity.slnx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Assets/Talo Game Services/Talo/Runtime/Vendor/com.mikeschweitzer.websocket b/Assets/Talo Game Services/Talo/Runtime/Vendor/com.mikeschweitzer.websocket
index 02ad65c..7b0a7df 160000
--- a/Assets/Talo Game Services/Talo/Runtime/Vendor/com.mikeschweitzer.websocket
+++ b/Assets/Talo Game Services/Talo/Runtime/Vendor/com.mikeschweitzer.websocket
@@ -1 +1 @@
-Subproject commit 02ad65ccf3ef8322b008789ad2e434dbaf376be5
+Subproject commit 7b0a7df7b58886812bf201ef71e729e5b9c76567
diff --git a/unity.slnx b/unity.slnx
index 033166a..8e1c5af 100644
--- a/unity.slnx
+++ b/unity.slnx
@@ -1,7 +1,7 @@
+
-
-
+
From b0e61ca9e0f1aea12e427a12b4aef58bd18d3337 Mon Sep 17 00:00:00 2001
From: tudor <7089284+tudddorrr@users.noreply.github.com>
Date: Sat, 3 Jan 2026 16:18:40 +0000
Subject: [PATCH 2/4] add custom ping/pong
---
Assets/Talo Game Services/Talo/Runtime/TaloSocket.cs | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Assets/Talo Game Services/Talo/Runtime/TaloSocket.cs b/Assets/Talo Game Services/Talo/Runtime/TaloSocket.cs
index d2b8b8b..9743ada 100644
--- a/Assets/Talo Game Services/Talo/Runtime/TaloSocket.cs
+++ b/Assets/Talo Game Services/Talo/Runtime/TaloSocket.cs
@@ -19,6 +19,12 @@ public class TaloSocket : MonoBehaviour
private void Awake()
{
socket = gameObject.AddComponent();
+ socket.DesiredConfig = new WebSocketConfig
+ {
+ PingInterval = TimeSpan.FromSeconds(30),
+ PingMessage = new WebSocketMessage("v1.heartbeat")
+ };
+
socket.MessageReceived += HandleMessage;
socket.StateChanged += HandleStateChange;
}
@@ -139,5 +145,10 @@ public async Task ResetConnection()
await OpenConnection();
}
}
+
+ public bool IsIdentified()
+ {
+ return identified;
+ }
}
}
From 9f49eddbda0eca6825e99004095728af8a439960 Mon Sep 17 00:00:00 2001
From: tudor <7089284+tudddorrr@users.noreply.github.com>
Date: Sat, 3 Jan 2026 16:18:59 +0000
Subject: [PATCH 3/4] only reset the socket if the player is identified already
---
Assets/Talo Game Services/Talo/Runtime/APIs/PlayersAPI.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Assets/Talo Game Services/Talo/Runtime/APIs/PlayersAPI.cs b/Assets/Talo Game Services/Talo/Runtime/APIs/PlayersAPI.cs
index 6b3d100..d7dab0b 100644
--- a/Assets/Talo Game Services/Talo/Runtime/APIs/PlayersAPI.cs
+++ b/Assets/Talo Game Services/Talo/Runtime/APIs/PlayersAPI.cs
@@ -50,7 +50,7 @@ public void InvokeIdentifiedEvent()
private async Task HandleIdentifySuccess(PlayerAlias alias, string socketToken = "")
{
- if (!Talo.IsOffline())
+ if (!Talo.IsOffline() && Talo.Socket.IsIdentified())
{
await Talo.Socket.ResetConnection();
}
From 804a736d361e2cae7ca33cf27b4147a805767006 Mon Sep 17 00:00:00 2001
From: tudor <7089284+tudddorrr@users.noreply.github.com>
Date: Sat, 3 Jan 2026 16:19:14 +0000
Subject: [PATCH 4/4] fix chat demo
---
.../Talo/Samples/ChatDemo/Scenes/ChatDemo.unity | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Assets/Talo Game Services/Talo/Samples/ChatDemo/Scenes/ChatDemo.unity b/Assets/Talo Game Services/Talo/Samples/ChatDemo/Scenes/ChatDemo.unity
index 8280086..104d2b7 100644
--- a/Assets/Talo Game Services/Talo/Samples/ChatDemo/Scenes/ChatDemo.unity
+++ b/Assets/Talo Game Services/Talo/Samples/ChatDemo/Scenes/ChatDemo.unity
@@ -151,7 +151,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_PanelSettings: {fileID: 11400000, guid: c2e8d45d57e604cc78799650d215a02e, type: 2}
m_ParentUI: {fileID: 0}
- sourceAsset: {fileID: 9197481963319205126, guid: d64908c7074e542a99b96c8605858371, type: 3}
+ sourceAsset: {fileID: 9197481963319205126, guid: 924337217d43d4ce2a336af8402ec3dc, type: 3}
m_SortingOrder: 0
m_WorldSpaceSizeMode: 1
m_WorldSpaceWidth: 1920