[fix] Emit the `connection` event before the `data` event