RustPlusApi.Fcm
1.3.0
See the version list below for details.
dotnet add package RustPlusApi.Fcm --version 1.3.0
NuGet\Install-Package RustPlusApi.Fcm -Version 1.3.0
<PackageReference Include="RustPlusApi.Fcm" Version="1.3.0" />
<PackageVersion Include="RustPlusApi.Fcm" Version="1.3.0" />
<PackageReference Include="RustPlusApi.Fcm" />
paket add RustPlusApi.Fcm --version 1.3.0
#r "nuget: RustPlusApi.Fcm, 1.3.0"
#:package RustPlusApi.Fcm@1.3.0
#addin nuget:?package=RustPlusApi.Fcm&version=1.3.0
#tool nuget:?package=RustPlusApi.Fcm&version=1.3.0
RustPlusApi.Fcm
This is a C# client for the Rust+ websocket. It allows you to receive notification via FCM.
RustPlusFcm
First, instantiate the RustPlusFcm class with the necessary parameters:
var listener = new RustPlusFcm(credentials, notificationIds);
Parameters:
credentials: The FCM credentials*.notificationIds: The notification ids to mark as read.
* See the Credentials section below for how to obtain these.
Then you can connect to the FCM server:
await listener.ConnectAsync();
You can subscribe to events to handle specific actions:
listener.OnServerPairing += (sender, e) =>
{
Console.WriteLine($"Server pairing: {e.ServerPairing}");
};
listener.OnEntityParing += (sender, e) =>
{
Console.WriteLine($"Entity pairing: {e.EntityPairing}");
};
listener.OnAlarmTriggered += (sender, e) =>
{
Console.WriteLine($"Alarm triggered: {e.Alarm}");
};
Remember to disconnect from the FCM server when you're done:
listener.Disconnect();
Credentials
Currently, there is no simple way to get the FCM credentials using .NET.
To use this library, you need to get the FCM credentials manually. To do, so I recommend you to use this project to get the credentials.
- Clone the repository.
- Install the dependencies using
npm install. - Run
npm run cli/index.js fcm-register - Proceed to log in with your Steam account.
- The credentials will be in a file named
rustplus.config.json.
I'm sorry for the inconvenience, but since the API is not fully complete, it's the easiest way.
| 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 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. |
-
net8.0
- protobuf-net (>= 3.2.52)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.