public static void SendText(this IObservableWebsocket ws, string text, Encoding encoding) => ws.Send(encoding.GetBytes(text), WebSocketMessageType.Text, true);
public static void SendBinary(this IObservableWebsocket ws, byte[] data) => ws.Send(data, WebSocketMessageType.Binary, true);
public static void SendText(this IObservableWebsocket ws, string text) => SendText(ws, text, Encoding.UTF8);