Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 9420bdf

Browse files
committed
Fix some comments
1 parent e29d451 commit 9420bdf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/DuplexJsonRpcEngine.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class DuplexJsonRpcEngine {
5151
*
5252
* @param middleware - The middleware function to add.
5353
*/
54-
pushReceiverMiddleware(
54+
addReceiverMiddleware(
5555
middleware: JsonRpcMiddleware<unknown, unknown>,
5656
): void {
5757
this.#receiver.addMiddleware(middleware as JsonRpcMiddleware<unknown, unknown>);
@@ -62,12 +62,12 @@ export class DuplexJsonRpcEngine {
6262
*
6363
* @param middleware - The middleware function to add.
6464
*/
65-
pushSenderMiddleware(middleware: JsonRpcMiddleware<unknown, unknown>): void {
65+
addSenderMiddleware(middleware: JsonRpcMiddleware<unknown, unknown>): void {
6666
this.#sender.addMiddleware(middleware as JsonRpcMiddleware<unknown, unknown>);
6767
}
6868

6969
/**
70-
* Returns the receiving pipeline as a middleware function that can be pushed
70+
* Returns the receiving pipeline as a middleware function that can be added
7171
* to other engines.
7272
*
7373
* @returns The receiving pipeline as a middleware function.
@@ -77,7 +77,7 @@ export class DuplexJsonRpcEngine {
7777
}
7878

7979
/**
80-
* Returns the sending pipeline as a middleware function that can be pushed
80+
* Returns the sending pipeline as a middleware function that can be added
8181
* to other engines.
8282
*
8383
* @returns The sending pipeline as a middleware function.

src/JsonRpcEngine.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ export class JsonRpcEngine extends SafeEventEmitter {
247247
await Promise.all(
248248
// 1. Begin executing each request in the order received
249249
reqs.map(this._promiseHandle.bind(this)),
250-
// Filter out falsy responses from notifications
251250
)
252251
).filter(
253252
// Filter out any notification responses.

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export * from './getUniqueId';
44
export * from './idRemapMiddleware';
55
export * from './JsonRpcEngine';
66
export * from './mergeMiddleware';
7+
export * from './DuplexJsonRpcEngine';

0 commit comments

Comments
 (0)