front end now responds to websocket requests