11000+款5星资源
8.5万+用户参与评分
10万+社区成员鼎力支持
每款资源都经过 Unity 审核
Unity版本 | 内置渲染管线 | 通用渲染管线(URP) | 高清渲染管线(HDRP) |
---|---|---|---|
2021.3.43f1 | 兼容 | 兼容 | 兼容 |
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)
