Fixed issue where the onConnect() event is being fired twice for one connection.