2017-05-17 1 views

답변

0

예 당신이 사용할 수있는 방법

이 중포 기지의 .info/connected

이 때마다 중포 기지의 실시간 데이터베이스 클라이언트 연결 상태 변경을 업데이트됩니다. 대한

let connectedRef = Database.database().reference(withPath: ".info/connected") 
connectedRef.observe(.value, with: { snapshot in 
    if snapshot.value as? Bool ?? false { 
    print("Connected") 
    } else { 
    print("Not connected") 
    } 
}) 

Read more here

+0

감사 답변을! ... 하지만 어디 일부 사용자은 : userid1, USERID2 등 ... 다음 위치를 전달하는 즉 경우 상태를 확인한다고 가정 사용자 ID 합격? – Nahim