Fix the Connection object not registering read and write callbacks without installing a connected callback