     public func getMyPeerID() -> MCPeerID {
         return myPeerId
     }
+    
     // Debug mode
     private func DLog(message: String, _ function: String) {
         if debugMode {

            return
        }
        
//        guard let browser = serviceBrowser else {
//            return
//        }
        DLog("%@", "connect to host: \(host)")
        serviceBrowser?.invitePeer(host, toSession: session, withContext: context, timeout: timeout)
        

    public func startAdvertisingHost() {
        stopSearchingForHosts()
        self.host = myPeerId

        serviceAdvertiser = MCNearbyServiceAdvertiser(peer: myPeerId,
                                                      discoveryInfo: ["peerType": "host"], serviceType: serviceType)
        self.serviceAdvertiser?.delegate = self
        
        self.serviceAdvertiser?.startAdvertisingPeer()
    }
    
