IsWebSocketRequests not working in mono

325 Views Asked by At

i connected to both HTTP and webSockect in .NET on windows system,its working fine then i moved the same project to mono to test on linux system using Mono but it giving me a false case that is webSocket connection IsWebSocketRequest is becoming false

 if (httpListenerContext.Request.IsWebSocketRequest==true)
 {
   //some logic
 }
1

There are 1 best solutions below

0
On
 httpListener.Prefixes.Add("http://127.0.0.1:8080/");
 httpListener.Start();

I tried in this way it worked for me