add socket info in constructor