Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
github-actions[bot] edited this page Aug 11, 2023 · 10 revisions

Class: Sse

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Sse(hue)

Parameters

Name Type
hue Hue

Defined in

src/connections/Sse.ts:12

Properties

connection

Optional connection: BodyReadable & BodyMixin

Defined in

src/connections/Sse.ts:10


dispatcher

Readonly dispatcher: Agent

Defined in

src/connections/Sse.ts:9


hue

Readonly hue: Hue

Defined in

src/connections/Sse.ts:8

Methods

_parse

_parse(raw): Record<string, any>[]

Parameters

Name Type
raw string

Returns

Record<string, any>[]

Defined in

src/connections/Sse.ts:82


connect

connect(): Promise<void>

Returns

Promise<void>

Defined in

src/connections/Sse.ts:30


debug

debug(message): void

Parameters

Name Type
message string

Returns

void

Defined in

src/connections/Sse.ts:26


event

event(raw): Promise<void>

Parameters

Name Type
raw string

Returns

Promise<void>

Defined in

src/connections/Sse.ts:55

hue.ts

Clone this wiki locally