public static async Task SendJsonObjectAsync(this IWebMessageSocket webMessageSocket, object payload) { var serialzedObject = JsonConvert.SerializeObject(payload); await webMessageSocket.SendMessageAsync(serialzedObject); }