added a warning message for when websocket connection is lost