Skip to Content
만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
book

만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
240 - 프로그레시브 웹 앱
자로서 서비스 워커 생명주기를 이해하는 것이 얼마나 중요한지 보여주는 한 예
입니다. 사용자가 페이지에 처음 방문하면 서비스 워커가 설치되고 활성화됩니
다. 하지만 페이지는 여전히 서비스 워커에 의해 제어되지 않습니다. 만일
self
.
clients
.
matchAll()
에 제어되지 않는 윈도우를 포함하지 않도록 알려주지 않
았다면 메시지는 목적지에 도달하지 못할 것입니다.
11
장에서는 캐싱이 완료될 때 사용자에게 알리는 방법과 관련된 예제를 살펴볼
것입니다.
8.3
서비스 워커에서 특정 윈도우로 메시지 보내기
matchAll()
메소드뿐만 아니라, 클라이언트 객체는 단일 객체를 가져오기 위한
get()
메소드를 가지고 있습니다.
get()
메소드에 특정 클라이언트의
ID
를 전달
하면 해당
WindowClient
객체로 리졸브 되는 프로미스를 받을 수 있습니다. 또
한 해당 객체를 사용하여 특정 클라이언트에 메시지를 게시할 수 있습니다.
예를 들어
WindowClients
중 하나의
ID
가 "
d2069ced
-
8f96
-
4d28
"라면, 해
당 윈도우가 현재 사용자에게 보이는지 안 보이는지 윈도우가 알 수 있게 하려면
다음 코드를 실행하면 됩니다.
self
.
clients
.
get
("
d2069ced
-
8f96
-
4d28
").
then
(
function
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

한선용, 라이언 미첼

Publisher Resources

ISBN: 9791162248737