ChatEventSourceLike
Defined in: core/types.ts:103
A minimal EventSource shape — deliberately not globalThis.EventSource,
so this package’s public types don’t require DOM lib types, and so tests
(and any runtime needing a polyfill) can supply their own implementation
via ChatNotificationsClientOptions.eventSourceFactory.
Properties
Section titled “Properties”onopen
Section titled “onopen”onopen: ((
event) =>void) |null
Defined in: core/types.ts:104
onmessage
Section titled “onmessage”onmessage: ((
event) =>void) |null
Defined in: core/types.ts:105
onerror
Section titled “onerror”onerror: ((
event) =>void) |null
Defined in: core/types.ts:106
readyState
Section titled “readyState”
readonlyreadyState:number
Defined in: core/types.ts:107
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: core/types.ts:108
Returns
Section titled “Returns”void