using System;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;using System.Net.WebSockets;using System.IO; namespace WebSocketTest{ public class Program { static void Main(string[] args) { Console.WriteLine("start...…