11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
网络
1/3
This Asset enables you to use Socket.IO Version 4 as a networking backend to connect to your game servers or other services. Including Acknowledgements, Binary messages and Namespace Multiplexing
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2021.3.36f1
兼容
兼容
兼容
描述

It 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.


This implementation is brand new. It is a complete rewrite compared to our existing "Basic" solution. If you happen to find a bug please contact our support, we are quick. Promised!


The library supports Receiving and Emitting events with zero, one or even more data payload parameters as simple as.


While our BASIC asset is even a bit more simple to use, it does not support namespaces, more than one payload and many more features which THIS asset actually DOES support.

Welcome to the new era of Socket.IO for Unity!


There may be minor differences in handling technical events (like connect, disconnect, connect_attempt, ...) comapred to the JS library but we try to keep it aligned as near as possible.

技术细节

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.

Socket.IO V4 Client PLUS (Standalone & WebGL)

(8)
31 users have favourite this asset
(31)
$29.99
席位
1
更新的价格和增值税在结算时计算
34 views in the past week
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
1 个月前
12/10 Asset. Smooth sailing.
If you are like me and you are using socket.io for your Node-based servers/cloud, this asset is essential. Implementing a Socket.IO system in a Unity...
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
Socket.IO V4 Client PLUS (Standalone & WebGL)
$29.99