send error messages via websocket.