File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2727 },
2828 "dependencies" : {
2929 "@sentry/node" : " ^6.15.0" ,
30- "bored-mplex" : " ^0.0.17 " ,
30+ "bored-mplex" : " ^0.0.20 " ,
3131 "jsonwebtoken" : " ^8.5.1" ,
3232 "ws" : " ^7.4.6"
3333 }
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ export class Agent {
6363 addClient ( socket : WebSocket , userId : string ) {
6464 this . clients . push ( { socket, userId } ) ;
6565
66- const mplex = new BoredMplex ( ( stream ) => {
67- const agentStream = this . openStream ( ) ;
66+ const mplex = new BoredMplex ( ( stream , data ) => {
67+ const agentStream = this . openStream ( data ) ;
6868
6969 stream . pipe ( agentStream ) ;
7070 agentStream . pipe ( stream ) ;
@@ -113,7 +113,7 @@ export class Agent {
113113 console . log ( "SERVER: client disconnected" ) ;
114114 }
115115
116- openStream ( ) {
117- return this . mplex . openStream ( ) ;
116+ openStream ( data ?: Buffer ) {
117+ return this . mplex . openStream ( data ) ;
118118 }
119119}
Original file line number Diff line number Diff line change @@ -979,9 +979,10 @@ binary-extensions@^2.0.0:
979979 version "2.2.0"
980980 resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
981981
982- bored-mplex@^0.0.17 :
983- version "0.0.17"
984- resolved "https://registry.npmjs.org/bored-mplex/-/bored-mplex-0.0.17.tgz"
982+ bored-mplex@^0.0.20 :
983+ version "0.0.20"
984+ resolved "https://registry.yarnpkg.com/bored-mplex/-/bored-mplex-0.0.20.tgz#8f64ad23d605751a1ca2ff3e07d5e808c27962ef"
985+ integrity sha512-1kzzE6qe8ugO8RVswgzZue28YtZBMlpY/J0XICQmYr/h0RxIn76ZtMVWDF0drVfdISyw49nFqphQ2v5DagpKIA==
985986 dependencies :
986987 msgpackr "1.2.9"
987988
You can’t perform that action at this time.
0 commit comments