Error: connect ECONNREFUSED 127.0.0.1:3001


#1

On page 316, after installing wscat,
I ran the command wscat - c ws://localhost:3001
I’ve got this message on my console:
error: Error: connect ECONNREFUSED 127.0.0.1:3001
Any help would be appreciated
Best,
Olivier


#2

You should run first npm run dev in a console, in another console you should later run wscat - c ws://localhost:3001


#3

Thank you incubusj :slight_smile:


#4

I am still getting this issue despite running nodemon any thoughts?