File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2323 $MockWebSocket . prototype . close = function ( ) {
2424 pendingCloses . push ( true ) ;
2525 } ;
26+
27+ $MockWebSocket . prototype . readyState = 1 ;
2628
2729 function createWebSocketBackend ( url , protocols ) {
2830 pendingConnects . push ( url ) ;
5759 while ( msg = pendingSends . shift ( ) ) {
5860 var j ;
5961 sendQueue . forEach ( function ( pending , i ) {
60- if ( pending . message === msg . message ) {
62+ if ( pending === msg ) {
6163 j = i ;
6264 }
6365 } ) ;
Original file line number Diff line number Diff line change 2323 $MockWebSocket . prototype . close = function ( ) {
2424 pendingCloses . push ( true ) ;
2525 } ;
26+
27+ $MockWebSocket . prototype . readyState = 1 ;
2628
2729 function createWebSocketBackend ( url , protocols ) {
2830 pendingConnects . push ( url ) ;
5759 while ( msg = pendingSends . shift ( ) ) {
5860 var j ;
5961 sendQueue . forEach ( function ( pending , i ) {
60- if ( pending . message === msg . message ) {
62+ if ( pending === msg ) {
6163 j = i ;
6264 }
6365 } ) ;
You can’t perform that action at this time.
0 commit comments