Colyseus 0.17.16
dotnet add package Colyseus --version 0.17.16
NuGet\Install-Package Colyseus -Version 0.17.16
<PackageReference Include="Colyseus" Version="0.17.16" />
<PackageVersion Include="Colyseus" Version="0.17.16" />
<PackageReference Include="Colyseus" />
paket add Colyseus --version 0.17.16
#r "nuget: Colyseus, 0.17.16"
#:package Colyseus@0.17.16
#addin nuget:?package=Colyseus&version=0.17.16
#tool nuget:?package=Colyseus&version=0.17.16
<div align="center"> <a href="https://colyseus.io/"> <img src="https://github.com/colyseus/colyseus/blob/master/media/logo.svg?raw=true" width="40%" /> </a> <h3>Colyseus Multiplayer SDK for C#/.NET</h3> </div>
Engine-agnostic core SDK for Colyseus — includes Schema serialization, matchmaking, room management, and state synchronization.
Works with Unity, Godot (C#), MonoGame, and any .NET project.
Installation
dotnet add package Colyseus
Threading
When the client is created on a thread with a SynchronizationContext (Unity, Godot C#), Colyseus posts WebSocket callbacks back to that context automatically.
For engines without one, either register an external dispatcher through ColyseusContext.RegisterWebSocketForDispatch, or call room.Connection.DispatchMessageQueue() from your update loop.
Quick Example
using Colyseus;
using Colyseus.Schema;
var client = new Client("ws://localhost:2567");
var room = await client.JoinOrCreate<MyRoomState>("my_room");
Console.WriteLine("Joined room: " + room.Id);
var callbacks = Callbacks.Get(room);
callbacks.Listen(state => state.currentTurn, (currentValue, previousValue) => {
Console.WriteLine($"Turn changed: {previousValue} -> {currentValue}");
});
callbacks.OnAdd(state => state.players, (sessionId, player) => {
Console.WriteLine($"Player joined: {sessionId}");
});
room.Send("move", new { x = 10f, y = 20f });
room.OnMessage<string>("chat", (message) => {
Console.WriteLine("Chat: " + message);
});
Documentation
See the full documentation at https://docs.colyseus.io/getting-started/unity
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Colyseus.NativeWebSocket (>= 2.0.0)
-
net8.0
- Colyseus.NativeWebSocket (>= 2.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Colyseus:
| Package | Downloads |
|---|---|
|
Colyseus.MonoGame
MonoGame integration for Colyseus Multiplayer SDK — provides a GameComponent that dispatches WebSocket events on the game loop. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.17.16 | 103 | 3/24/2026 |
| 0.17.15 | 81 | 3/24/2026 |
| 0.17.14 | 79 | 3/24/2026 |
| 0.17.12 | 86 | 3/23/2026 |
| 0.17.11 | 122 | 3/23/2026 |
| 0.1.1-rc2 | 2,169 | 3/9/2016 |
| 0.1.1-rc1 | 1,174 | 3/9/2016 |
| 0.1.0-rc9 | 1,193 | 3/9/2016 |
| 0.1.0-rc8 | 3,224 | 2/25/2016 |
| 0.1.0-rc7 | 1,180 | 2/20/2016 |
| 0.1.0-rc6 | 1,565 | 2/20/2016 |
| 0.1.0-rc5 | 2,522 | 2/20/2016 |
| 0.1.0-rc4 | 2,572 | 2/20/2016 |
| 0.1.0-rc3 | 2,564 | 2/19/2016 |
| 0.1.0-rc2 | 2,554 | 2/19/2016 |
| 0.1.0-rc1 | 3,030 | 2/19/2016 |