Data handler does not fire even though connection is made