@lholmquist the mqtt javascript client http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.javascript.git/tree/src/mqttws31.js Line 1536, Line 123 validates the connection options and throws an error in case of invalid passed property, method.

The [options](https://github.com/tolis-e/aerogear-js/blob/AGJS-47/src/notifier/adapters/mqttws.js#L313) object which is passed to the notifier's connect method, contains the `onConnect`, `onConnectError` methods and `url`, `clientId` properties which are invalid for the underlying mqtt javascript client. However, I wanted to keep the naming `onConnect`, `onConnectError`, `url` in order to keep consistent the notifiers API. So, I'm creating a copy of the object and removing the invalid properties, methods. 

Would it be better to create new variables to hold the [callbacks](https://github.com/tolis-e/aerogear-js/blob/AGJS-47/src/notifier/adapters/mqttws.js#L336) and avoid creating a copy of the options?