Added client IDs, fixing refreshing and multiple tabs on the same browser. Disconnections are still painfully slow.
Added missing single quote in previous fix.