Skip to content

Commit 40f9e70

Browse files
Serhii Yolkinenlight
authored andcommitted
Fixed incompatible type error
1 parent 8230bd0 commit 40f9e70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnityProject/Assets/LoomSDK/Source/Runtime/Internal/WebSocketRpcClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public override Task SubscribeAsync(EventHandler<JsonRpcEventData> handler, ICol
166166
result.Add("topics", topics);
167167
}
168168

169-
return SendAsync<string, Dictionary<string, ICollection<string>>>("subevents", result);
169+
return SendAsync<object, Dictionary<string, ICollection<string>>>("subevents", result);
170170
}
171171

172172
public override Task UnsubscribeAsync(EventHandler<JsonRpcEventData> handler)
@@ -175,7 +175,7 @@ public override Task UnsubscribeAsync(EventHandler<JsonRpcEventData> handler)
175175
if (this.eventReceived == null)
176176
{
177177
this.webSocket.OnMessage -= WSSharpRPCClient_OnMessage;
178-
return SendAsync<string, object>("unsubevents", null);
178+
return SendAsync<object, object>("unsubevents", null);
179179
}
180180
return Task.CompletedTask;
181181
}
@@ -329,4 +329,4 @@ private void WSSharpRPCClient_OnMessage(object sender, MessageEventArgs e)
329329
}
330330
}
331331

332-
#endif
332+
#endif

0 commit comments

Comments
 (0)