Added the websockets on the frontend.