API 참조
Discover (LAN)
로컬 네트워크 (LAN/Wi-Fi Aware)에서 다른 PlainApp 인스턴스를 발견합니다. 발견은 페어링 전의 첫 번째 단계입니다 — 기기를 발견한 후 Pairing 섹션에서 페어링 뮤테이션을 호출합니다.
타입 정의
bash
# Discovery uses UDP broadcast on the LAN and (optionally) Wi-Fi Aware.
# Discovered devices are not persisted; call isDiscovering to poll state.
# Use the NearbyViewModel events / WebSocket push channel to receive the
# live list of discovered devices.작업
mutation
startDiscovery
로컬 네트워크에서 PlainApp peers 스캔을 시작합니다. 즉시 반환되고, 결과는 WebSocket 이벤트 채널을 통해 푸시되어 Nearby UI에 표시됩니다.
bash
mutation StartDiscovery {
startDiscovery
}mutation
stopDiscovery
진행 중인 발견 스캔을 중지합니다.
bash
mutation StopDiscovery {
stopDiscovery
}query
isDiscovering
발견 스캔이 현재 실행 중인지 여부.
bash
query IsDiscovering {
isDiscovering
}