HavenDV / H.Socket.IO

This is the Socket.IO client for .NET, which is based on ClientWebSocket, provide a simple way to connect to the Socket.IO server. The target framework is .NET Standard 2.0
MIT License
100 stars 15 forks source link

Fixes #31. #34

Closed BotJoi closed 1 year ago

BotJoi commented 1 year ago

Fixes #31.

Compiler error checking is disabled due to:
NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://api.nuget.org/v3/index.json.
 ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.Net.Http.NSUrlSessionHandler.set_Proxy(IWebProxy value)
   at System.Net.Http.HttpClientHandler.InvokeNativeHandlerMethod(String name, Object[] parameters)
   at System.Net.Http.HttpClientHandler.SetProxy(IWebProxy value)
   at System.Net.Http.HttpClientHandler.set_Proxy(IWebProxy value)
   at NuGet.Protocol.HttpHandlerResourceV3Provider.CreateResource(PackageSource packageSource)
   at NuGet.Protocol.HttpHandlerResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
   at NuGet.Protocol.Core.Types.SourceRepository.d__16`1[[NuGet.Protocol.Core.Types.HttpHandlerResource, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at NuGet.Protocol.Core.Types.SourceRepository.d__15`1[[NuGet.Protocol.Core.Types.HttpHandlerResource, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at NuGet.Protocol.HttpSource.CreateHttpClientAsync()
   at NuGet.Protocol.HttpSource.EnsureHttpClientAsync()
   at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken)
   at NuGet.Protocol.HttpSource.<>c__DisplayClass15_0`1.<b__0>d[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
--- End of stack trace from previous location ---
   at NuGet.Common.ConcurrencyUtilities.d__5`1[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at NuGet.Common.ConcurrencyUtilities.d__5`1[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at NuGet.Protocol.HttpSource.d__15`1[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3(SourceRepository source, DateTime utcNow, ILogger log, CancellationToken token)
   --- End of inner exception stack trace ---
   at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3(SourceRepository source, DateTime utcNow, ILogger log, CancellationToken token)
   at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
   at NuGet.Protocol.Core.Types.SourceRepository.d__16`1[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at NuGet.Protocol.DependencyInfoResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
   at NuGet.Protocol.Core.Types.SourceRepository.d__16`1[[NuGet.Protocol.Core.Types.DependencyInfoResource, NuGet.Protocol, Version=6.5.0.154, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.GetPackageDependenciesAsync(PackageIdentity packageIdentity, NuGetFramework targetFramework, ImmutableArray`1 repositories, SourceCacheContext cacheContext, ILogger logger, Builder dependencies, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 533
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 232
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 197
   at Joi.IntegrationTests.CSharpAnalyser.GetSolutionDiagnosticsAsync(IReadOnlyDictionary`2 files, CancellationToken cancellationToken) in /Users/havendv/Documents/.GitHub.nosync/tryAGI/Joi/src/libs/Joi.CodeAnalysis.CSharp/CSharpAnalyser.cs:line 173
   at Joi.ManualBot.MainPage.CheckSolutionAsync(IReadOnlyDictionary`2 files, CancellationToken cancellationToken) in /Users/havendv/Documents/.GitHub.nosync/tryAGI/Joi/src/apps/Joi.ManualBot/MainPage.xaml.cs:line 1094
   at Joi.ManualBot.MainPage.WatchAsync(CancellationToken cancellationToken) in /Users/havendv/Documents/.GitHub.nosync/tryAGI/Joi/src/apps/Joi.ManualBot/MainPage.xaml.cs:line 606
  
Checking existing test diagnostics...

  
Check before solving - There are existing test diagnostics:

  
Selecting files...

  
Using these files:
src/libs/H.Socket.IO/SocketIoClient.cs
src/libs/H.Socket.IO/Utilities/SocketIoUtilities.cs
  
Solving issue...

  
Failed with exception:
Token count 11610 is above the limit of 5048.