Skip to main content
Version: v10.0.0

EventSourceReadyState

readyState values of an EventSource - read without the global, which some runtimes don't have


Import
import { EventSourceReadyState } from "@hyper-fetch/sockets"

Preview​

const EventSourceReadyState = { CLOSED: 2; CONNECTING: 0; OPEN: 1 }

Structure​

EventSourceReadyState
NameTypeDescription
CLOSED
2
CONNECTING
0
OPEN
1