SvRooij.TeamsMonitor.Core
0.4.1
dotnet add package SvRooij.TeamsMonitor.Core --version 0.4.1
NuGet\Install-Package SvRooij.TeamsMonitor.Core -Version 0.4.1
<PackageReference Include="SvRooij.TeamsMonitor.Core" Version="0.4.1" />
paket add SvRooij.TeamsMonitor.Core --version 0.4.1
#r "nuget: SvRooij.TeamsMonitor.Core, 0.4.1"
// Install SvRooij.TeamsMonitor.Core as a Cake Addin #addin nuget:?package=SvRooij.TeamsMonitor.Core&version=0.4.1 // Install SvRooij.TeamsMonitor.Core as a Cake Tool #tool nuget:?package=SvRooij.TeamsMonitor.Core&version=0.4.1
SvRooij.TeamsMonitor.Core
A simple library you can use to connect to your local Teams Client. This library manages the required websocket connection so you can get instant updates from your Teams client.
You can also control various settings using this library. Just explore all the methods on the TeamsSocket
.
Sample code
using var socket = new TeamsSocket(new TeamsSocketOptions("{token-from-previous-paired-session}") { AutoPair = true });
socket.Update += (object sender, MeetingUpdate update) => { ... }
// Be sure to save the token and reuse it next time when connecting.
socket.NewToken += (object sender, string token) => { ... }
socket.ServiceResponse += (object sender, ServiceResponse response) => { ... }
await socket.ConnectAsync(true, cancellationToken);
dotnet tool available
There also is an application available, if you just want to forward your Teams status to any webserver (like home assistant).
Teams has a local api?
Yes, it does! If you never heard of it, that might be right because it was released February 1st 2023. Once you enable it, Teams will open a websocket server on localhost.
You can just use any client that supports websockets and connect to the following url.
ws://localhost:8124?token=61e9d3d4-dbd6-425d-b80f-8110f48f769c&protocol-version=2.0.0&manufacturer=YourManufacturer&device=YourDevice&app=YourApp&app-version=2.0.26`
Socials
If you like my Teams Monitor, please give me a shout out on any of these platforms.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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 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. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.