Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020년 1월.
EventSource() 생성자는 원격 자원을 나타내는 새롭게 생성된 EventSource 를 반환합니다.
이벤트/메시지를 제공하는 원격 자원의 위치를 나타내는 USVString 입니다.
configuration Optional새 연결 구성을 위한 옵션을 제공합니다. 가능한 항목은 다음과 같습니다.* withCredentials. 기본값은 false 이며, CORS 가 자격을 포함하도록 설정되어야하는지를 나타냅니다.
참고 : GitHub 에서 전체 예시를 확인할 수 있습니다 — Simple SSE demo using PHP를 사용하는 간단한 SSE 데모를 보세요.
| HTML # dom-eventsource-dev |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 8월 1일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.