Skip to content

Commit 992c73d

Browse files
committed
fix: set onData to private
1 parent b4e9698 commit 992c73d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/RequestManager.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,4 @@ describe("client-js", () => {
3939
c.request("foo", []);
4040
});
4141

42-
it("can handle onData", () => {
43-
const transport = new EventEmitterTransport("foo://unique-uri");
44-
const c = new RequestManager([transport]);
45-
const data = "{\"result\": \"bar\", \"id\": 1}";
46-
c.request("foo", []);
47-
c.onData(data);
48-
});
49-
5042
});

src/RequestManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class RequestManager {
4747
transport.close();
4848
});
4949
}
50-
public onData(data: string): void {
50+
private onData(data: string): void {
5151
const parsedData = JSON.parse(data);
5252
if (typeof parsedData.result === "undefined") {
5353
return;

0 commit comments

Comments
 (0)