You need to iterate over the vector layer after your signal.
def getselectionidget_selection_id(layer):
for feature in layer.selectedFeatures():
print(feature.id())
iface.mapCanvas().selectionChanged.connect(getselectionidget_selection_id)