Update: onConnect/onClose optional