Socket.IO V3 / V4 Client Basic (Standalone & WebGL)
This package enables the use of Socket.IO Version 3 or 4 features as a networking backend for games and services.

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost. $18.99
- Category:
- Tools › Network
- Developer:
- Firesplash Entertainment
- Price:
- $18.99
- Rating:
- Favorites:
- 71
- Supported Unity Versions:
- 2021.3.43 or higher
- Current Version:
- 1.6.3
- Download Size:
- 275.88 KB
- Last Update:
- Oct 18, 2024
- Description:
- This asset provides an easy-to-use API for communicating with socket.io-powered backends, such as NodeJS microservices, using standard On/Emit methods. It supports receiving and emitting events with zero or one data parameter, which can be a JSON object. The library serializes JSON-object data into a string and passes plain text data unmodified. However, binary payloads are not supported, and acknowledgements are also not supported.
This library is designed for simple event-based communication and does not aim to be a complete socket.IO implementation. It does not support namespaces and may have minor differences in handling technical events compared to the JS library and between native/WebGL implementations.
The 'BASIC' asset is designed for quick implementation and lacks some advanced features. The 'PLUS' asset is more feature-complete but has a more technical implementation.
The package has several advantages, including support for standalone and WebGL builds, multiple connections, and automatic reconnect on connection drop. It also supports changing the server-side path, sending authentication handshake data, and using inverted Ping. The package includes full source code and various sample projects with client and server code.
Note that this asset implements Version 3/4 of the Socket.IO protocol, and if your server uses Version 1 or 2, you cannot connect. The native implementation only supports websocket transport, and the WebGL implementation tries websocket first and implements a fallback to long-polling. - Technical Details:
- Compared to other Socket.IO-Assets available, this implementation has the following advantages:
* Supports Standalone and WebGL builds
* Supports multiple connections/instances at the same time for both implementations
* Uses the newer JSLib implementation for WebGL-Support instead of deprecated APIs
* Supports most important events like connect, disconnect, connect_error, reconnecting, ...
* Supports automatic reconnect on connection drop
* Supports changing the server-side path from /socket.io/ to anything you want
* Supports sending authentication handshake data to the server
* Uses inverted Ping (v3 and v4 feature a more reliable ping implementation compared to v2)
* Completely rewritten Watchdog in native mode
* Many optimizations on native implementation compared to v2
* Developed and tested under Unity 2020.3 LTS
* No compiled DLL. Includes full source code
* Various Sample projects with client and server code included - Continue »