WebSocket4Net unable to connect to proxy

851 Views Asked by At

Try to connect WebSocket4Net to proxy so that can debug in fiddler. However, hit exception that the remoteEndPoint is null in Connect method in SuperSocket.ClientEngine.Proxy when trigger .Open() method.

var proxy = new HttpConnectProxy(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8888));
_socket.Proxy = (SuperSocket.ClientEngine.IProxyConnector)proxy;
_socket.Open();
1

There are 1 best solutions below

0
On

It is a bug in SuperSocket.ClientEngine. I have sent them a pull request