private static void OnServerBinaryReceived(object sender, WebSocketServerBinaryReceivedEventArgs e) { var text = Encoding.UTF8.GetString(e.Data, e.DataOffset, e.DataLength); Console.Write(string.Format("WebSocket server [{0}] received Binary --> ", e.Client.RemoteEndPoint)); Console.WriteLine(string.Format("{0}", text)); }