Comments (10)
Good idea, there is only one problem that needs to be solved: how to use WebSocket client on .Net Fx 4+?
The current project uses System.Net.Websockets.Client.dll
as the ws client, which supports .NET Standard 1.3+ (.NET Fx 4.6+)
. Therefore, we only need to find alternatives and implement the IWebSocketClient
interface.
It's worth noting that if we don't install System.Net.Websocket.Client
from NuGet, we can also import the namespace, but it belongs to System.dll
, running on Windows 7, will throw a PlatformNotSupportedException
from socket.io-client-csharp.
I tried it and it seems difficult to support .NET Fx 4.5.2 and below, The following implementation is missing:
- Task.CompletedTask
- Task.Delay()
Different delegate signatures:
.NET Framework 4.0:
public delegate void EventHandler<TEventArgs>(object sender, TEventArgs e) where TEventArgs : EventArgs;
.NET Standard 2.0:
public delegate void EventHandler<TEventArgs>(object sender, TEventArgs e);
This may have to change the code of the SocketIO.cs
from socket.io-client-csharp.
I agree that it does not work with .NET Framework 4.0, but it works like a charm on .NET Framework 4.5 (Currently I've tested win 10 only)
from socket.io-client-csharp.
NuGet does not provide a way to target a specific OS version.
I think providing a .Net Fx 4.5+ can still benefit people. Even websocket-sharp does not support windows 7 (sta/websocket-sharp#572). This would require a proper documentation.
from socket.io-client-csharp.
https://github.com/doghappy/socket.io-client-csharp/tree/feat-netfx4.5
In this branch, I added some code that may be useful to you
from socket.io-client-csharp.
Works fine on my side. Though it would require a -pre release since websocketsharp version is 1.0.3-rc11
from socket.io-client-csharp.
How could I help accelerate the publication to NuGet?
from socket.io-client-csharp.
Install-Package SocketIOClient.NetFx -Version 1.0.0-alpha3
from socket.io-client-csharp.
Hello,
Made a few test with the NetFx version. I'm concerned about reconnexion with Websocketsharp. I doesn't work as expected. Using the ClientWebSocket of the framework, it works correctly.
from socket.io-client-csharp.
If your TargetFramework is .NET Framework
and it runs on Windows7/Windows Server 2008 R2
, please install
Otherwise, we recommend you to install
from socket.io-client-csharp.
Related Issues (20)
- The server returned status code '400' when status code '101' was expected. HOT 1
- How can I find out if the verification failed? HOT 1
- EmitAsync doesn't seem to work with data parameters HOT 1
- Updating to version 3.1.1 leads to error CS0118 HOT 2
- Help using nuget HOT 2
- Connection hanging, not connecting HOT 1
- about EmitAsync HOT 1
- about DisconnectAsync HOT 1
- Apache license in socket.io/package.json files
- socketioclient is missing NuGet package README file
- Iยดm getting spammed by error messages
- Json Serializer Options
- Custom ServerCertificateValidationCallback [3.1.1] HOT 1
- Added this project to the China .NET OSS Ranking
- Some packages are missing metadata
- Inconsistency between registering and unregistering event handlers
- Optimise dependencies based on TFM HOT 1
- Why there is no returning info onConnected -- OnDisconnected etc HOT 3
- Android Unity3D build: Socket IO callbacks are not executed HOT 2
- OnDisconnected issue on Raspberry Pi/NET 6 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.io-client-csharp.