Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Operation is not supported on this platform #601

Open
cooltrain7 opened this issue Mar 16, 2020 · 7 comments
Open

Error: Operation is not supported on this platform #601

cooltrain7 opened this issue Mar 16, 2020 · 7 comments

Comments

@cooltrain7
Copy link

I've been running socket-sharp for 3 weeks now just fine (.net Core 2.1). Its started to throw this

System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Action 1.BeginInvoke(T obj, AsyncCallback callback, Object object) at WebSocketSharp.WebSocket.open() at WebSocketSharp.WebSocket.Connect() | System.Exception {System.PlatformNotSupportedException}

I'm simply calling
using (ws = new WebSocketSharp.WebSocket(Address)) { ws.Connect(); //Other stuff after }

and it throws after connect.

@anpin
Copy link

anpin commented Mar 18, 2020

I just tried to make a port of an app to UWP and I got the same error

@danielmackay
Copy link

I'm getting the same error also. Running on .NET Core 3.1.

@vitaliy-art
Copy link

I have same problem. I'm using secure connection and in one of ten cases (or so) program throws System.PlatformNotSupportedException after connect to server. When connection is nonsecure, it works fine.

@ManOfYellowKing
Copy link

I use connectasync() to connect to server,it throws the same error, but it works fine when I use connect.
Running on .NET Core 3.1.

@danielmackay
Copy link

danielmackay commented Apr 24, 2020 via email

@tomerpeled
Copy link

@bradliuvskysoft thanks for the workaround, it indeed works without async.
Good for my test env...

@nixxholas
Copy link

Am working on a proper fork currently. Should finish basic support in a week. @tomerpeled
https://github.com/nozomi-ai/websocket-sharp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants