Official Unity SDK for OddSockets real-time messaging platform. C# MonoBehaviour components for pub/sub, presence, message history.
Copy the Scripts/ folder into your Unity project's Assets/ directory.
// Attach OddSocketsClient to a GameObject
var client = gameObject.AddComponent<OddSocketsClient>();
client.Initialize(new OddSocketsConfig { ApiKey = "YOUR_API_KEY", UserId = "my-agent" });
client.ConnectAsync();
var channel = client.GetChannel("my-channel");
channel.OnMessage.AddListener((msg) => Debug.Log($"Received: {msg}"));
channel.SubscribeAsync();
channel.PublishAsync("{\"text\":\"Hello from Unity\"}");curl -X POST https://oddsockets.com/api/agent-signup \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "agentName": "my-agent", "platform": "unity"}'
curl -X POST https://oddsockets.com/api/agent-signup/verify \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "code": "123456", "agentName": "my-agent"}'| Free | Starter | Pro | |
|---|---|---|---|
| Price | $0/mo | $49.99/mo | $299/mo |
| MAU | 100 | 1,000 | 50,000 |
| Concurrent connections | 50 | 1,000 | Unlimited |
| Messages/day | 10,000 | 4,320,000 | Unlimited |
| Channels | 10 | Unlimited | Unlimited |
| Storage | 100MB (24h) | 50GB (6 months) | Unlimited |
MIT License - Copyright (c) 2026 Joe Wee, Tyga.Cloud Ltd. See LICENSE for details.