added useSharedConnection option to allow a new connection for each new hub