You can peek the online documentation here! Including a feature comparison matrix of our Socket.IO assets.
Compared to other Socket.IO-Assets available, our 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, reconnect_attempt, ...
- Supports automatic reconnect on connection drop
- Supports changing the server side path from /socket.io/ to anything you want
- Uses inverted Ping (Socket.IO v3 and v4 feature a more reliable ping implementation compared to v2)
- Developed and tested under Unity 2021.3 LTS - Should also work on newer and older versions
- No compiled DLL. Includes full source code
- Includes a Sample project
This is what our BASIC asset also does.
Now what makes the PLUS asset better? Read on:
- Supports connection multiplexing (aka namespaces, PLUS only feature)
- Supports Binary Payloads (PLUS only feature)
- Supports Acknowledgements (duplex messaging, PLUS only feature)
- Supports sending authentication handshake data to the server - per namespace - using a delegate (BASIC only supports static credentials). This means, you can now for example refresh a token before connecting!
- Supports raising reconnect delays to prevent hammering the server
- Identical protocol implementation in WebGL and native mode. No more differences per platform! (PLUS only feature)
- Completely redesigned Watchdog to detect websocket disconnects quickly.
- Work with simple messages (zero/one payload) without needing extra code (deserializing etc, PLUS only feature)
- Send and receive events with multiple payloads (advanced, PLUS only feature)
- The PLUS implementation does not rely on outdated external code. It is a complete rewrite!
This asset requires Json.Net which is now included in Unity from 2021+ and can easily be installed in older versions.
As told in the title, this asset implements Version 3/4 of the Socket.IO protocol. If your server uses Version 1 or 2, you can not connect.
This implementation does only support the websocket transport. Long-Polling is not supported.
The Asset is being tested on WebGL, Windows, Editor.
It should work flawlessly on any common platform. Mobile platforms are working based on customer feedback - but we do not test against them. We also can not test against consoles but we expect it to work there, too.
If you are using our Asset on any untested platforms, feel free to report any issues! We'll do our best to solve them.
Please note: This asset is new (First release in 2023) and might still contain some undiscovered bugs. If so, contact us and we'll solve them as fast as possible. Don't believe? Read the reviews for our BASIC asset.