Socket.IO Client Library for Unity (mono / .NET 2.0), which is ported from the JavaScript client version 1.1.0.
With this library, 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.
Example code:
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();
});