Skip to content

Commit 3b43a37

Browse files
committed
fix: add deprecation warning to mplex
1 parent 6c7bd45 commit 3b43a37

File tree

1 file changed

+3
-0
lines changed
  • packages/stream-multiplexer-mplex/src

1 file changed

+3
-0
lines changed

packages/stream-multiplexer-mplex/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class Mplex implements StreamMuxerFactory {
106106
}
107107
}
108108

109+
/**
110+
* @deprecated mplex is deprecated as it has no flow control. Please use yamux instead.
111+
*/
109112
export function mplex (init: MplexInit = {}): (components: MplexComponents) => StreamMuxerFactory {
110113
return (components) => new Mplex(components, init)
111114
}

0 commit comments

Comments
 (0)