OK just quickly, use NWCOnnection.newConnectionHandler (Documentation)
NWCOnnection.newConnectionHandler
I (hopefully) will update this answer after I implement this into my code