Add missing param emitConnect.