AVCoders.SignalR.Room
2026.11.2
Prefix Reserved
dotnet add package AVCoders.SignalR.Room --version 2026.11.2
NuGet\Install-Package AVCoders.SignalR.Room -Version 2026.11.2
<PackageReference Include="AVCoders.SignalR.Room" Version="2026.11.2" />
<PackageVersion Include="AVCoders.SignalR.Room" Version="2026.11.2" />
<PackageReference Include="AVCoders.SignalR.Room" />
paket add AVCoders.SignalR.Room --version 2026.11.2
#r "nuget: AVCoders.SignalR.Room, 2026.11.2"
#:package AVCoders.SignalR.Room@2026.11.2
#addin nuget:?package=AVCoders.SignalR.Room&version=2026.11.2
#tool nuget:?package=AVCoders.SignalR.Room&version=2026.11.2
AVCoders.SignalR.Room
SignalR hub and bridge for room state. Part of the AV Coders device library. Targets .NET 8.0 and .NET 10.0.
Install
dotnet add package AVCoders.SignalR.Room
Published to nuget.org. See the repository README for details.
What's inside
IRoomHub/RoomHubRoomUiSignalR- registers aRoomManagerwith the hub and rebroadcasts its power, properties and link statusRoomManager- wraps aDeviceBasefor power, and holds the room's string property bag and link statusRoomLinkStatus- whether the room can start a link, itsRoomLinkState(Unlinked,Leading,Following) and its partner room's name
Contract
Hub path convention: /hubs/room. UIs join a group by the manager's name, the same way as the source hub.
Client to server (RoomHub):
| Method | Notes |
|---|---|
JoinGroup(string groupName) |
Pushes OnPowerStateChanged, OnPropertiesSnapshot and OnRoomLinkChanged to the caller, in that order. |
GetGroups() |
Registered group names. |
PowerOn(string group) / PowerOff(string group) |
Forwarded to the wrapped device. |
PowerOnWithArgs(string group, Dictionary<string, string> args) / PowerOffWithArgs(...) |
Raise RoomManager.OnPowerOnRequested / OnPowerOffRequested with the args; the device isn't powered. null args arrive as an empty dictionary. |
LinkRooms(string group) |
Raises RoomManager.OnLinkRoomsRequested when the room supports linking, is Unlinked and its power is On. Otherwise it logs a warning with the room's link status and power, and does nothing. |
UnlinkRooms(string group) |
Raises RoomManager.OnUnlinkRoomsRequested when the room is Leading or Following, whether or not it supports linking. Otherwise it logs a warning with the same values, and does nothing. |
A call for an unknown group is dropped, and is reported as an ongoing unknown-group:<group> issue on RoomHub.Connections: see the AVCoders.SignalR.Connections README. HubAuditFilter records LinkRooms and UnlinkRooms as Room.LinkRooms and Room.UnlinkRooms against the group, like the other commands.
Server to client (IRoomHub):
| Method | Notes |
|---|---|
OnPowerStateChanged(PowerState state) |
Sent on join and whenever the device's power changes. |
OnPropertiesSnapshot(Dictionary<string, string> properties) |
Sent on join. |
OnPropertyChanged(string key, string value) |
Sent on every RoomManager.SetProperty. |
OnRoomLinkChanged(RoomLinkStatus link) |
Sent on join and whenever SetLinkSupported, SetLinkPartner or SetLinkState changes the status. Setting a value it already has sends nothing. |
Commands are fire-and-forget: the hub returns as soon as the work is queued, and the new state comes back through the callbacks.
Room linking
The program owns the link between two rooms. RoomManager carries each room's side of it for UIs, and passes UI requests to the program:
SetLinkSupported(true)on a room that can start a link, for example the room that leads a pair.SetLinkPartner(name)on both rooms, with the other room's name. It is sent in every state, so a UI can name the partner before linking.SetLinkState(state)on both rooms whenever the link changes, however it changed.- Handle
OnLinkRoomsRequestedandOnUnlinkRoomsRequested, and report the result withSetLinkState.
A UI offers link while supportsLinking is true, state is Unlinked and power is On, and unlink while state is Leading or Following. A room with no partner keeps the starting status, false, Unlinked and "".
Wire shape
RoomLinkStatus is serialised by the SignalR JSON protocol with camelCase names and the state as an integer (0 Unlinked, 1 Leading, 2 Following):
{
"supportsLinking": true,
"state": 1,
"partner": "Room B"
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 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. |
-
net10.0
- AVCoders.Core (>= 2026.11.2)
- AVCoders.SignalR.Connections (>= 2026.11.2)
-
net8.0
- AVCoders.Core (>= 2026.11.2)
- AVCoders.SignalR.Connections (>= 2026.11.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.11.2 | 98 | 11/20/2026 |
| 2026.11.1 | 96 | 11/12/2026 |
| 2026.10.5 | 109 | 10/21/2026 |
| 2026.10.4 | 100 | 10/21/2026 |
| 2026.10.3 | 90 | 10/14/2026 |
| 2026.10.2 | 104 | 10/13/2026 |
| 2026.10.1 | 117 | 10/6/2026 |
| 2026.9.8 | 123 | 9/29/2026 |
| 2026.9.7 | 118 | 9/24/2026 |
| 2026.9.6 | 112 | 9/18/2026 |
| 2026.9.5 | 117 | 9/17/2026 |
| 2026.9.4 | 109 | 9/14/2026 |
| 2026.9.2 | 121 | 9/2/2026 |
| 2026.9.1 | 122 | 9/2/2026 |
| 2026.8.5 | 123 | 8/27/2026 |
| 2026.8.4 | 128 | 8/26/2026 |
| 2026.8.3 | 123 | 8/26/2026 |
| 2026.8.2 | 136 | 8/24/2026 |
| 2026.8.1 | 132 | 8/11/2026 |
| 2026.7.3 | 134 | 7/22/2026 |