Rework Metrics web socket handler plus Javadoc