Add a handler for reporting metrics via a websocket