Abrir un túnel
El vonage tunnel <which> El comando se puede utilizar para abrir un túnel con el fin de probar los webhooks.
ngrok
Puedes abrir un túnel ngrok utilizando el vonage tunnel ngrok <id>donde id es el ID de tu aplicación.
Se pueden utilizar los siguientes parámetros para configurar el túnel de ngrok:
| Bandera | Descripción | Tipo |
|---|---|---|
--auth-token | Ngrok auth token | Cadena |
--subdomain | Establecer un subdominio ngrok | Cadena |
--port | El puerto al que ngrok reenviará el tráfico es | Número (por defecto: 3000) |
--region | Una de las regiones de ngrok | Debe ser una de las siguientes opciones: "us", "eu", "au", "ap", "sa", "jp", "in" (por defecto: "us") |
vonage tunnel ngrok "4f4d4831-1491-41d4-be82-689c78e09997"
⚠️ ⚠️ This will update the all the WebHooks for your application ⚠️ ⚠️
This will cause WebHooks to directed to Ngrok instead of your servers
Use caution when using with production applications.
You have been warned
Are you sure you want to continue? [y/n] y
✅ Fetching Application
✅ Opening us ngrok tunnel to port 3000
Ngrok is running
Forwarding:
Web Interface: http://127.0.0.1:4040;
Press q to quit
vonage tunnel ngrok "4f4d4831-1491-41d4-be82-689c78e09997"
⚠️ ⚠️ This will update the all the WebHooks for your application ⚠️ ⚠️
This will cause WebHooks to directed to Ngrok instead of your servers
Use caution when using with production applications.
You have been warned
Are you sure you want to continue? [y/n] y
✅ Fetching Application
✅ Opening us ngrok tunnel to port 3000
Ngrok is running
Forwarding:
Web Interface: http://127.0.0.1:4040;
Press q to quit
vonage tunnel ngrok "4f4d4831-1491-41d4-be82-689c78e09997" ⚠️ ⚠️ This will update the all the WebHooks for your application ⚠️ ⚠️ This will cause WebHooks to directed to Ngrok instead of your servers Use caution when using with production applications. You have been warned Are you sure you want to continue? [y/n] y ✅ Fetching Application ✅ Opening us ngrok tunnel to port 3000 Ngrok is running Forwarding: Web Interface: http://127.0.0.1:4040; Press q to quit