received  websocket messages can be processed in the controller now
implemented json parsing