Add custom socket and connect in constructor.