Skip to content

Commit f2d2a0d

Browse files
committed
Abstract the underlying poll
1 parent 7bc5092 commit f2d2a0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/polling/src/socketstream.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ export class SocketStream<T, U> extends Stream<T, U> implements IDisposable {
7575
protected socket: WebSocket | null = null;
7676

7777
/**
78-
* The poll instance that mediates the web socket lifecycle.
78+
* A handle to the socket subscription to dispose when necessary.
7979
*/
80-
protected readonly subscription: Poll;
80+
protected readonly subscription: IDisposable;
8181

8282
/**
8383
* Open a web socket and subscribe to its updates.

0 commit comments

Comments
 (0)