Colyseus 0.17.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package Colyseus --version 0.17.11
                    
NuGet\Install-Package Colyseus -Version 0.17.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Colyseus" Version="0.17.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Colyseus" Version="0.17.11" />
                    
Directory.Packages.props
<PackageReference Include="Colyseus" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Colyseus --version 0.17.11
                    
#r "nuget: Colyseus, 0.17.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Colyseus@0.17.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Colyseus&version=0.17.11
                    
Install as a Cake Addin
#tool nuget:?package=Colyseus&version=0.17.11
                    
Install as a Cake Tool

<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

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 Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 115 3/24/2026
0.17.15 82 3/24/2026
0.17.14 83 3/24/2026
0.17.12 87 3/23/2026
0.17.11 123 3/23/2026
0.1.1-rc2 2,170 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,565 2/19/2016
0.1.0-rc2 2,554 2/19/2016
0.1.0-rc1 3,030 2/19/2016