All Projects → floatinghotpot → Socket.io Unity

floatinghotpot / Socket.io Unity

socket.io client for Unity, power game client with node.js back-end

Projects that are alternatives of or similar to Socket.io Unity

Leopotamgrouplibraryunity
Tools library for unity 3d game engine: animator graph helpers, serialization (json), localization, event routing (eventbus, ui actions), embedded scripting, uGui xml markup, threading, tweening, in-memory protection and other helpers (pure C#)
Stars: ✭ 373 (-5.81%)
Mutual labels:  json, unity, game-development
Crystalai
A Utility AI for C# and Unity
Stars: ✭ 328 (-17.17%)
Mutual labels:  unity, game-development
Spheredissolve
Customizable procedural spherical dissolve shader for Unity3D, for all your customizable procedural spherical dissolve needs!
Stars: ✭ 311 (-21.46%)
Mutual labels:  unity, game-development
Vue Socket.io
😻 Socket.io implementation for Vuejs and Vuex
Stars: ✭ 3,746 (+845.96%)
Mutual labels:  websocket, socket-io
Ilruntime hotgames
基于ILRuntime的热更新能力实现的可以直接使用的框架,友情赠送C# WebService + WebSocketServer服务器端。
Stars: ✭ 293 (-26.01%)
Mutual labels:  unity, websocket
Libplanet
Blockchain core in C#/.NET for persistent peer-to-peer online games
Stars: ✭ 293 (-26.01%)
Mutual labels:  unity, game-development
Socket.io Client Dart
socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client
Stars: ✭ 333 (-15.91%)
Mutual labels:  websocket, socket-io
Noahgameframe
A fast, scalable, distributed game server engine/framework for C++, include the actor library, network library, can be used as a real time multiplayer game engine ( MMO RPG/MOBA ), which support C#/Lua script/ Unity3d, Cocos2dx and plan to support Unreal.
Stars: ✭ 3,258 (+722.73%)
Mutual labels:  unity, game-development
Game Networking Resources
A Curated List of Game Network Programming Resources
Stars: ✭ 4,208 (+962.63%)
Mutual labels:  unity, game-development
Wssip
Application for capturing, modifying and sending custom WebSocket data from client to server and vice versa.
Stars: ✭ 373 (-5.81%)
Mutual labels:  websocket, socket-io
Ecsrx
A reactive take on the ECS pattern for .net game developers
Stars: ✭ 288 (-27.27%)
Mutual labels:  unity, game-development
Starforce
This is a demo made with Game Framework.
Stars: ✭ 375 (-5.3%)
Mutual labels:  unity, game-development
Merino
Merino is a narrative design tool that lets you write Yarn scripts inside the Unity Editor
Stars: ✭ 275 (-30.56%)
Mutual labels:  unity, game-development
Gdk For Unity
SpatialOS GDK for Unity
Stars: ✭ 296 (-25.25%)
Mutual labels:  unity, game-development
Shineframe
高性能超轻量级C++开发库及服务器编程框架
Stars: ✭ 274 (-30.81%)
Mutual labels:  json, websocket
Colaframework
ColaFrameWork 一个Unity客户端框架
Stars: ✭ 337 (-14.9%)
Mutual labels:  unity, game-development
Webdis
A Redis HTTP interface with JSON output
Stars: ✭ 2,465 (+522.47%)
Mutual labels:  json, websocket
Socket.io
NodeJS《你画我猜》游戏
Stars: ✭ 255 (-35.61%)
Mutual labels:  websocket, socket-io
Laravel Swoole
High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
Stars: ✭ 3,726 (+840.91%)
Mutual labels:  websocket, socket-io
Unity2d Components
A constantly evolving array of Unity C# components for 2D games, including classes for pixel art cameras, events & messaging, saving & loading game data, collision handlers, object pools, and more.
Stars: ✭ 375 (-5.3%)
Mutual labels:  unity, game-development

socket.io-unity

unity-nodejs

Socket.IO Client Library for Unity (mono / .NET 2.0), which is ported from the JavaScript client version 1.1.0.

SocketIoClientDotNet by Quobject is a very good project, but it does not support Unity. So I spent a few overnights to port it to mono/.NET 2.0.

Now game developers can:

  • use node.js to develop game server, enjoy the powerful ecosystem of network and database, easily deploy to cloud;
  • use Unity to develop game client, enjoy the poweful game engine and IDE.
  • use websocket / socket.io to communicate between server/client.

Installation

Downlaod socket.io.unitypackage and then import into Unity.

Or, only download the following files in Lib and put to Unity project:

  • WebSocket4Net.dll
  • SocketIoClientDotNet.dll
  • Newtonsoft.Json.dll

It's available on Unity Asset Store for $10, but you can also download it for FREE here.

If you are interested to dig into the source code, welcome to fork the SocketIoClientDotNet for .NET 2.0.

Usage

socket.io client for Unity has a similar api to those of the JavaScript client.

using Quobject.SocketIoClientDotNet.Client;

var socket = IO.Socket("http://localhost:3000");
socket.On(Socket.EVENT_CONNECT, () =>
{
  socket.Emit("hi");
});
socket.On("hi", (data) =>
{
  Debug.Log(data);
  socket.Disconnect();
});

And, with Newtonsoft.Json.dll, we can easliy serialize / deserialize json object. Read more about Newtonsoft.Json.

Features

This library supports all of the features the JS client does, including events, options and upgrading transport.

Framework Versions

Mono, .NET 2.0

Demo

Comparison

Project Author Popularity Status
socket.io-unity floatinghotpot new ACTIVE, support .NET 2.0 and Unity
SocketIoClientDotNet Quobject 323 stars ACTIVE, support .NET 3.5 and higher, but not compatible with .NET 2.0 and Unity
UnitySocketIO NetEase 547 stars no longer maintained, not compatible with socket.io 1.x and later
unity-socket.io-DEPRECATED fpanettieri 189 stars no longer maintained
UnitySocketIO-WebSocketSharp kaistseo 108 stars no longer maintained

Credit

Thanks to the authors of following projects:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].