 }
 
 @objc open class BPPeer: NSObject {
-    open var displayName: String = "" // is HHService.name !
+    open var displayName: String = "" // is same as HHService.name !
     fileprivate var socket: GCDAsyncSocket?
     open var role: RoleType = .unknown
     open var state: BPPeerState = .notConnected

        return self.peers.filter({ $0.state == .authenticated }).count
    }
    
    // specify customData if this is needed for browser to decide whether to connect or not
    open func startAdvertising(_ role: RoleType, customData: [String:String]?) {
        if let _ = self.advertising {
            DLog("BluepeerObject: Already advertising (no-op)")

            if let delegate = self.membershipAdminDelegate {
                self.dispatch_on_delegate_queue({
                    delegate.peerConnectionRequest?(peer, invitationHandler: { (inviteAccepted) in
                        if peer.state != .awaitingAuth || sock.isConnected != true {
                            DLog("inviteHandlerBlock: not connected/wrong state, so cannot accept!")
                            self.logDelegate?.didReadWrite("inviteHandlerBlock, not connected / wrong state!")
                            if (sock.isConnected) {
                                self.disconnectSocket(socket: sock, peer: peer)
                            }
                        } else if inviteAccepted {
                            peer.state = .authenticated // SERVER-local-peer becomes connected
                            peer.connectCount += 1
                            // CONVENTION: SERVER sends CLIENT a single 0 to show connection has been accepted, since it isn't possible to send a header for a payload of size zero except here.
                            self.logDelegate?.didReadWrite("writeAuthAcceptance")
                            sock.write(Data.init(count: 1), withTimeout: Timeouts.header.rawValue, tag: DataTag.tag_WRITING.rawValue)
                            DLog("inviteHandlerBlock: accepted (by my delegate)")
                            self.dispatch_on_delegate_queue({
                                self.membershipRosterDelegate?.peerDidConnect?(.client, peer: peer)
                            })
