Added get_consumers function to javascript websocket client