websocket state emitter consumer
get a json response