Remove onConnect from defaults.