Added the websocket api