We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd1519 commit ccf4c74Copy full SHA for ccf4c74
Assets/Plugins/Colyseus/Client.cs
@@ -202,7 +202,14 @@ private void ParseMessage (byte[] bytes)
202
endpoint.Path = "/" + room.Id;
203
endpoint.Query = "colyseusid=" + this.Id;
204
205
- room.SetConnection(CreateConnection(room.Id, room.Options));
+ var processPath = "";
206
+ var nextIndex = 3 + room.Id.Length;
207
+ if (bytes.Length > nextIndex)
208
+ {
209
+ processPath = System.Text.Encoding.UTF8.GetString(bytes, nextIndex + 1, bytes[nextIndex]) + "/";
210
+ }
211
+
212
+ room.SetConnection(CreateConnection(processPath + room.Id, room.Options));
213
room.OnLeave += OnLeaveRoom;
214
215
if (rooms.ContainsKey(room.Id))
0 commit comments