![]() |
VOOZH | about |
dotnet add package VeeFriends.Restream.Chat --version 1.1.3
NuGet\Install-Package VeeFriends.Restream.Chat -Version 1.1.3
<PackageReference Include="VeeFriends.Restream.Chat" Version="1.1.3" />
<PackageVersion Include="VeeFriends.Restream.Chat" Version="1.1.3" />Directory.Packages.props
<PackageReference Include="VeeFriends.Restream.Chat" />Project file
paket add VeeFriends.Restream.Chat --version 1.1.3
#r "nuget: VeeFriends.Restream.Chat, 1.1.3"
#:package VeeFriends.Restream.Chat@1.1.3
#addin nuget:?package=VeeFriends.Restream.Chat&version=1.1.3Install as a Cake Addin
#tool nuget:?package=VeeFriends.Restream.Chat&version=1.1.3Install as a Cake Tool
This package provides integration with Twilio and Restream for relaying chat messages.
$ dotnet add package VeeFriends.Restream.Chat
This library enables the handling and relaying of chat messages across different platforms, including Restream and Twilio.
Configure the relay options with the necessary credentials for Twilio and Restream.
var relayOptions = new RelayOptions
{
TwilioChatAccountSid = "your-account-sid",
TwilioChatAuthToken = "your-auth-token",
TwilioChatServiceId = "your-service-id",
RestreamChatEmbedId = "your-embed-id"
};
You can easily add the Relay class to your ASP.NET Core project using the provided extension method:
public void ConfigureServices(IServiceCollection services)
{
var relayOptions = new RelayOptions
{
// Set relay options here
// ...
};
services.AddRestreamToTwiloRelay(relayOptions);
// Other services
}
This extension method abstracts the process of registering the Relay class with the DI container, providing a convenient way to include the functionality in an ASP.NET Core application.
Create an instance of the Relay class using the configured options.
var relay = new Relay(relayOptions);
Start listening to a specific conversation using one of the available methods:
var stopOn = DateTime.Now.AddMinutes(10);
relay.StartListening("conversation-id", stopOn, cancellationToken);
var stopIn = TimeSpan.FromMinutes(10);
relay.StartListening("conversation-id", stopIn, cancellationToken);
relay.StartListening("conversation-id", async () =>
{
// Your custom logic here
return await Task.FromResult(false);
}, cancellationToken);
You can extend the functionality by implementing your logic for handling messages within the relay classes and methods.
Feel free to explore the code and tailor it to your specific needs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.3 | 87,176 | 4/17/2024 |
| 1.1.2 | 9,003 | 1/23/2024 |
| 1.1.1 | 264 | 1/23/2024 |
| 1.0.34 | 6,610 | 9/6/2023 |
| 1.0.33 | 285 | 9/6/2023 |
| 1.0.32 | 306 | 9/6/2023 |
| 1.0.31 | 4,574 | 9/6/2023 |
| 1.0.30 | 276 | 9/6/2023 |
| 1.0.29 | 280 | 9/6/2023 |
| 1.0.28 | 277 | 9/6/2023 |
| 1.0.27 | 252 | 9/6/2023 |
| 1.0.26 | 302 | 9/6/2023 |
| 1.0.25 | 271 | 9/6/2023 |
| 1.0.24 | 280 | 9/6/2023 |
| 1.0.23 | 309 | 9/6/2023 |
| 1.0.22 | 953 | 8/22/2023 |
| 1.0.21 | 274 | 8/22/2023 |
| 1.0.20 | 305 | 8/22/2023 |
| 1.0.19 | 289 | 8/22/2023 |
| 1.0.18 | 284 | 8/22/2023 |