Using SignalWire.Relay using using System using namespace Example ConnectĪttempt to connect an existing call to a new outbound call and waits until one of the remote parties answers the call or the connect fails. Setting up a new consumer is the easiest way to get up and running. Each event will only be delivered to a single consumer, so as your volume increases, just scale up! This process works well whether you are using Docker Swarm, a Procfile on Heroku, your own webserver, and most other environments. Relay Consumers can scale easily, simply by running multiple instances of your process. Think of Relay Consumers like a background worker system for all your calling and messaging needs. Relay Consumers abstract all the setup of connecting to Relay and automatically dispatches workers to handle requests so you can concentrate on writing your code without having to worry about multi-threading or blocking, everything just works. Relay ConsumerĪ creates a long running process, allowing you to respond to incoming requests and events in realtime. There are a few ways to get started, depending on your needs:, , and. NET client, you must get your project and token from your SignalWire dashboard. NET SDK can be used to get up and running with Relay quickly and easily. Or you can install the package through Visual Studio's NUGET package manager, simply install the signalwire-dotnet package to your project.
0 Comments
Leave a Reply. |