/// <summary> /// Sends a message /// </summary> /// <param name="message"></param> /// <returns></returns> public async Task SendMessageAsync(string message) { var data = new ArraySegment <byte>(Encoding.UTF8.GetBytes(message)); await WebsocketClient.SendAsync(data, WebSocketMessageType.Text, true, CancellationToken.None) .ConfigureAwait(false); }