sta / sta/websocket-sharp

Error: Operation is not supported on this platform

Open
#601 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the WebSocket.open() and WebSocket.Connect() calls named in the stack trace, then reproduce the failure with the shown WebSocket constructor and ws.Connect() usage on .NET Core 2.1. Done means the connection no longer throws PlatformNotSupportedException on the affected platform.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.