in reply to AnyEvent:WebSocket produces 'No such device or address' error

Use Mojolicious instead. Set up a real API that returns JSON.
$ perl -Mojo -E 'a("/hello" => {json => {hello => 'world'}})->start' d +aemon
Boom! xD