Skip to content

Commit b4c955b

Browse files
Fix WebGL compilation warning
1 parent 6c8f9ec commit b4c955b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,13 @@ protected override void Dispose(bool disposing)
192192
this.webSocket.Dispose();
193193
}
194194

195-
private async Task SendAsync<T>(string method, T args, string msgId)
195+
private Task SendAsync<T>(string method, T args, string msgId)
196196
{
197197
var reqMsg = new JsonRpcRequest<T>(method, args, msgId);
198198
var reqMsgBody = JsonConvert.SerializeObject(reqMsg);
199199
this.Logger.Log(LogTag, "RPC Req: " + reqMsgBody);
200200
this.webSocket.Send(reqMsgBody);
201+
return Task.CompletedTask;
201202
}
202203

203204
private void Disconnect()

0 commit comments

Comments
 (0)