def signal_connection(self):
        """Act on establishment of incomming connection."""
        ## update source name and type_codename

        source_name = self.data["source_name"] = next(
            get_source_name(self.proxy_socket.parent)
        )

        type_codename = self.proxy_socket.type_codename

        self.data["source_type_codename"] = type_codename

        ## update label surface
        self.update_label_surface()

        ## check header width
        self.check_header_width()

        ## reposition node elements since the label changed and
        ## the header width probably changed as well
        self.reposition_elements()

        ## update style and output name of output socket

        output_socket = self.output_socket

        output_socket.update_type_codename(type_codename)

        self.propagate_output(source_name, type_codename)
Act on establishment of incomming connection.
nodezator/graphman/proxynode/segment.py