don't rely on `onConnect` being a thing

you might want to `reconnect().on('connection', ...)` instead and there is a matching `if(onConnect)` above for this.