Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
2021.3.43f1 | Compatible | Compatible | Compatible |
Do you need the older Socket.IO v2? Find our v2 asset here!
This asset implements an easy to use API for communicating to any socket.io powered backend like for example NodeJS microservices using the standard On/Emit Methods.
The library supports Receiving and Emitting events with zero or one data parameter (which can be a JSON object) as simple as.
JSON-Object-Data which is received from the server is serialized into a string (JSON format). Plain text data is passed through unmodified.
Binary payloads are not supported (You can encode them as Base64). Acknowledgements are also not supported.
This library is ready made for simple Event-Based communication. It is not aiming to be a complete socket.IO implementation. It does further not support namespaces.
There may be minor differences in handling technical events (like connect, disconnect, connect_attempt, ...) comapred to the JS library AND between Native/WebGL implementations but we try to keep it aligned as near as possible.
BASIC versus PLUS
This "BASIC" asset is designed for a quick implementation and lacks some more advanced features. The "PLUS" asset is more feature-complete but also more technical regarding it's implementation (still quite easy though). The PLUS asset will be released in late Q1/2023.
Socket.IO V3 / V4 Client Basic (Standalone & WebGL)
