You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Query`|`IEnumerable<KeyValuePair<string, string>>`| additional query parameters that are sent when connecting a namespace (then found in `socket.handshake.query` object on the server-side) |
97
-
|`EIO`|`4`| If your server is using socket.io server v2.x, please explicitly set it to 3|
97
+
|`EIO`|`V4`| If your server is using socket.io server v2.x, please explicitly set it to V3|
98
98
|`ExtraHeaders`|`null`| Headers that will be passed for each request to the server (via xhr-polling and via websockets). These values then can be used during handshake or for special proxies. |
99
99
|`Transport`|`Polling`| Websocket is used by default, you can change to http polling. |
100
100
|`AutoUpgrade`|`true`| If websocket is available, it will be automatically upgrade to use websocket |
@@ -224,41 +224,6 @@ jsonSerializer.OptionsProvider = () => new JsonSerializerSettings
224
224
client.JsonSerializer=jsonSerializer;
225
225
```
226
226
227
-
## ClientWebSocket Options
228
-
229
-
You can set proxy and add headers for WebSocket client, etc.
if (sslPolicyErrors==System.Net.Security.SslPolicyErrors.None)
251
-
{
252
-
returntrue;
253
-
}
254
-
returntrue;
255
-
};
256
-
}
257
-
};
258
-
returnclientWebSocket;
259
-
};
260
-
```
261
-
262
227
## Windows 7 Support
263
228
264
229
The library uses System.Net.WebSockets.ClientWebSocket by default. Unfortunately, it does not support Windows 7 or Windows Server 2008 R2. You will get a PlatformNotSupportedException. To solve this problem, you need to install the `SocketIOClient.Windows7` dependency and then change the implementation of ClientWebSocket.
@@ -302,52 +267,50 @@ For Xamarin.Android you should add the following code:
302
267
}
303
268
```
304
269
305
-
I don't have a macOS device, and I don't know the specific exceptions of Xamarin.iOS. Welcome to create a pr and update this document. thanks :)
270
+
I don't know the specific exceptions of Xamarin.iOS. Welcome to create a pr and update this document. thanks :)
306
271
307
-
# Breaking changes
272
+
# Change log
308
273
309
-
## Breaking changes in 3.0.0
274
+
## [3.0.8] - 2023-03-04
310
275
311
-
> While WebSocket is clearly the best way to establish a bidirectional communication, experience has shown that it is not always possible to establish a WebSocket connection, due to corporate proxies, personal firewall, antivirus software…
- SocketIOClient v3.x supports http polling, but if websocket is available, the library will choose to use websocket. If you want to use http polling and do not want the library to upgrade the transport, please set `Options.AutoUpgrade = false`.
316
-
- Socket.io server v2.x is no longer supported. If a large number of users use this version, please feedback.
280
+
### Changed
317
281
318
-
### Specific break changes
282
+
- Update NuGet dependencies
283
+
- Cancel reconnecting when calling Disconnect or Dispose #307
284
+
- Improve proformance
319
285
320
-
#### 1. EIO option removed
286
+
##[3.0.7] - 2022-11-29
321
287
322
-
Since socket.io server v2 is not supported, the EIO option is not required.
288
+
### Added
323
289
324
-
#### 2. Removed the 'Socket' object
290
+
- Support custom User-Agent header
325
291
326
-
Use ClientWebSocketProvider instead of Socket object.
292
+
### Changed
327
293
328
-
## Breaking changes in 2.2.4
294
+
- Fixed OnAny does not fire when received binary messages
295
+
- Update NuGet dependencies
296
+
- Fixed http pooling concurrency issues
297
+
- Improve proformance
329
298
330
-
Before SocketIOClient v2.2.4, the default EIO is 3, which works with socket.io v2.x, in SocketIOClient v2.2.4, the default EIO is 4, which works with socket.io v3.x and v4.x
299
+
## [3.0.6] - 2022-03-17
331
300
332
-
##Breaking changes in 2.2.0
301
+
### Added
333
302
334
-
SocketIOClient v2.2.0 makes `System.Text.Json` the default JSON serializer. If you'd like to continue to use `Newtonsoft.Json`, add the **SocketIOClient.Newtonsoft.Json** NuGet package and set your **JsonSerializer** to **NewtonsoftJsonSerializer** on your SocketIO instance. System.Text.Json is faster and uses less memory.
Thank [socket.io](https://socket.io/) and [darrachequesne](https://github.com/darrachequesne) for sponsoring the project on [Open Collective](https://opencollective.com/socketio/expenses/).
0 commit comments