Added autoReconnect option to custersocket