ARI - wscat getting error: Error: connect ECONNREFUSED

My server bind to 0.0.0.0 but while running the below command getting the error

[root@asterisk]# wscat -c “ws://localhost:8088/ari/events?api_key=asterisk:asterisk&app=hello-world” error: Error: connect ECONNREFUSED

Please suggest.

Using Asterisk 13.12.2

What is the actual configuration file for http.conf? Have you enabled it there?

http.conf
enabled=yes
bindaddr=127.0.0.1

ARI
enabled = yes

[asterisk]
type = user
read_only = no
password = test123

Is that the complete contents? If so then the files are invalid as they do not include a [general] section, thus most would not be considered valid and HTTP and ARI would remain off.

Hi
I had the same problem, but seeing this video fixed the problem