UNPKG
hatch
Version:
latest (1.1.0)
1.1.0
1.0.1
1.0.0
0.2.2
0.2.1
0.2.0
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Eve events over the wire using HTTP EventSource
github.com/DamonOehlman/hatch
DamonOehlman/hatch
hatch
/
client.d.ts
9 lines
(8 loc)
•
259 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/// <reference types="node" />
import
{
EventEmitter
}
from
'events'
;
export
declare
class
HatchClient
extends
EventEmitter
{
private
readonly
id;
private
readonly
source;
constructor
(
id
:
string
,
source
:
EventSource
);
private
handleMessage; }