NVentimiglia / WebSocket.Portable

C# Portable WebSocket Client Library (Rfc 6455). Works with Xamarin.
Apache License 2.0
11 stars 2 forks source link

Handshake failed : invalid status code #3

Closed baramuse closed 8 years ago

baramuse commented 8 years ago

Hi,

I'm trying to use the library to create a client remote for Movian. Movian exposes a WS server but I cannot connect to it with WebSocket.Portable when I was able to with WebSocket4Net and Simple Websocket Client Chrome extension

It's kind of easy to test, if you're under MacOs (or ubuntu) by (downloading Movian)[https://movian.tv/downloads/movian/master] and then hitting the WS endpoint : ws://localhost:42000/showtime/stpp

Let me know if I can provide more informations.

(btw, there is a miss-type in the exception : "invalid status sode")

baramuse commented 8 years ago

I've found the problem : I was not connection to the correct endpoint.

Like here : http://stackoverflow.com/questions/30523478/connecting-to-websocket-using-c-sharp-i-can-connect-using-javascript-but-c-sha/30618088#30618088