socket.io-client-csharp
socket.io-client-csharp copied to clipboard
socket.io-client implemention for .NET
Hello @JesseKPhillips , @crackxia , @KimSchneider - The package.json files in tests/socket.io/package.json states "license": "Apache" . Is this reffering to Apache-2.0 and is applied to the files in the folder...
private async Task EmitAsync( string eventName, CancellationToken cancellationToken, Action ack, params object[] data) why this method has become private? If I want to set a timeout and also directly obtain...
Hello, How can I assign json data to variables? ``` client.On("price_changed", response => { Console.WriteLine(response); }); ```  My all code: ``` public static async Task Main(string[] args) { var...
_socket.OnPing += (_, _) => _lastPingTime = DateTime.Now; "If _lastPingTime does not receive data for more than 10 seconds, it needs to reconnect. The code is as follows: Logger.Info("连续10秒未收到Ping,断开连接"); _timer.Stop();...
I'm trying to use this library with unity, .Net Framework 4.7.2 My client code is ``` SocketIOClient.SocketIO client = new SocketIOClient.SocketIO("http://localhost:3000/"); client.OnConnected += async (sender, e) => { Debug.Log("connected"); };...
I'm not sure whether this is a NuGet problem or a problem specific to this package, but updating to version 3.1.1 leads to some packages not being loaded. This is...
using SocketIOClient.Extensions; using SocketIOClient.Transport; using SocketIOClient.Transport.Http; using SocketIOClient.Transport.WebSockets; using SocketIOClient.UriConverters; var client = new SocketIO("http://localhost:3000)"); ERROR: SocketIO is namespaced but used as a type.
``` public void Initialize() { var client = new SocketIOClient.SocketIO("http://mywebsocket", new SocketIOOptions { ExtraHeaders = new Dictionary { {"Authorization", "{\"id\":123, \"first_name\":\"A\", \"last_name\":\"A\", \"username\":\"A\", \"auth_date\":123, \"hash\":\"gjsdkgbskjdgbkasjdbgjkasbdjgkasdgbjkasbdkagjk\"}"}, {"SessionID", "test" } } });...
Client code: _socket = new SocketIOClient.SocketIO("http://localhost:9099", new SocketIOOptions { ExtraHeaders = new Dictionary { { "token", "1234561" }, }, }); On the server side, the netty-socketio library is used. It...
I am kinda new to the C# and .NET. I installed this package in the Nuget, and I copy and paste the example code from the Readme. I import the...