OpenMacroBoard.SocketIO
11.0.0-beta.1
dotnet add package OpenMacroBoard.SocketIO --version 11.0.0-beta.1
NuGet\Install-Package OpenMacroBoard.SocketIO -Version 11.0.0-beta.1
<PackageReference Include="OpenMacroBoard.SocketIO" Version="11.0.0-beta.1" />
<PackageVersion Include="OpenMacroBoard.SocketIO" Version="11.0.0-beta.1" />
<PackageReference Include="OpenMacroBoard.SocketIO" />
paket add OpenMacroBoard.SocketIO --version 11.0.0-beta.1
#r "nuget: OpenMacroBoard.SocketIO, 11.0.0-beta.1"
#:package OpenMacroBoard.SocketIO@11.0.0-beta.1
#addin nuget:?package=OpenMacroBoard.SocketIO&version=11.0.0-beta.1&prerelease
#tool nuget:?package=OpenMacroBoard.SocketIO&version=11.0.0-beta.1&prerelease
OpenMacroBoard.SocketIO
A device provider for OpenMacroBoard that reaches macro boards over the network instead of USB. Its main use is the virtual board, a board in the browser for developing without hardware.
The name is historic: this is the package's own small protocol over TCP and UDP, and has nothing to do with the JavaScript library socket.io.
Use a board in your application
Add the listener to your device context. Boards that run on the same machine are found automatically and behave like any other macro board.
using OpenMacroBoard.SDK;
using OpenMacroBoard.SocketIO;
using var ctx = DeviceContext.Create()
.AddListener<SocketIOBoardListener>();
using var board = await ctx.OpenAsync();
board.SetKeyBitmap(0, KeyBitmap.Create.FromRgb(255, 0, 0));
To try it, start the virtual board from a clone of the repository:
dotnet run --project src/OpenMacroBoard.VirtualBoard
Host a board yourself
SocketIOMacroBoardHost makes any IMacroBoard available to other applications. That can be
a real device you want to share with another process, or your own implementation.
using OpenMacroBoard.SocketIO;
using System.Net;
// "board" is the IMacroBoard to share. Port 0 lets the operating system choose a free port.
using var host = new SocketIOMacroBoardHost(board, "My board", IPAddress.Loopback);
Console.WriteLine($"Hosting on {host.HostEndpoint}");
Network and security
There is no authentication and no encryption. Everybody who can reach a hosted board can show images on it and receive its key presses.
For that reason the listener and the host both use the loopback address 127.0.0.1 by default,
so boards are only visible on the same machine. You can pass another address to their
constructors to reach boards on other machines, but only do that in a network you trust.
Boards are discovered with UDP broadcasts on port 35891. Each board then listens on its own TCP port.
| Product | Versions 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. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- OpenMacroBoard.SDK (>= 11.0.0-beta.1)
- Overby.Extensions.AsyncBinaryReaderWriter (>= 1.0.39)
- System.Reactive (>= 6.1.0)
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 |
|---|---|---|
| 11.0.0-beta.1 | 60 | 11/21/2026 |
| 10.0.0 | 292 | 6/19/2026 |
| 6.1.0 | 812 | 9/17/2025 |
| 6.0.0 | 1,623 | 3/3/2024 |
| 5.0.0 | 568 | 8/1/2023 |
| 4.0.0-preview | 511 | 3/24/2022 |