File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export class Polling extends Transport {
97
97
res . onAborted ( onClose ) ;
98
98
99
99
this . writable = true ;
100
- this . emit ( "drain " ) ;
100
+ this . emit ( "ready " ) ;
101
101
102
102
// if we're still writable but had a pending close, trigger an empty send
103
103
if ( this . writable && this . shouldClose ) {
@@ -291,6 +291,7 @@ export class Polling extends Transport {
291
291
debug ( 'writing "%s"' , data ) ;
292
292
this . doWrite ( data , options , ( ) => {
293
293
this . req . cleanup ( ) ;
294
+ this . emit ( "drain" ) ;
294
295
} ) ;
295
296
}
296
297
Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ export class WebSocket extends Transport {
60
60
this . socket . send ( data , isBinary , compress ) ;
61
61
62
62
if ( isLast ) {
63
- this . writable = true ;
64
63
this . emit ( "drain" ) ;
64
+ this . writable = true ;
65
+ this . emit ( "ready" ) ;
65
66
}
66
67
} ;
67
68
You can’t perform that action at this time.
0 commit comments