Created socket connection in impl and index file