c# - Unable to connect to the remote server using ClientWebSocket -
i'm trying connect web socket server on localhost:9222 using c# code:
var ws = new clientwebsocket(); var uri = new uri("ws://localhost:9222/x/y/z", urikind.absolute); await ws.connectasync(uri, cancellationtoken.none);
on last line, i'm getting unable connect remote server
, inner exception the remote server returned error: (404) not found.
.
however, have javascript connects same websocket:
var ws = new websocket("ws://localhost:9222/x/y/z");
and works great in both ie , chrome.
i'm not using proxies.
is there i've missed configure in c# code?
how can debug this?
update:
using websocket4net instead of .net 4.5 clientwebsocket, i'm getting http 1.1 500: internal server error
. however, i'm not sure how can debug either.
Comments
Post a Comment