within <mount> <on-connect> and <on-disconnect> has been replaced by <event>
, but I can' really find any documentation or examples on that. Currently I'm using the <on-connect> statement to call a script, which issues a curl command to make an API call:
The Changelog states that
, but I can' really find any documentation or examples on that. Currently I'm using the
<on-connect>
statement to call a script, which issues a curl command to make an API call:This works perfectly, but I'm trying to do the same thing with the
<event>
statement.I've tried the following code, but it does not seem to make any HTTP request to the API endpoint:
How can I use
<event>
to make a HTTP call to the API endpoint athttp://127.0.0.1/api/v1/icecast
?