Skip to content

Commit

Permalink
fix: forward the local flag to the adapter when using fetchSockets()
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed May 3, 2022
1 parent 171f45b commit d76024a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/broadcast-operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
.fetchSockets({
rooms: this.rooms,
except: this.exceptRooms,
flags: this.flags,
})
.then((sockets) => {
return sockets.map((socket) => {
Expand Down Expand Up @@ -289,6 +290,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
{
rooms: this.rooms,
except: this.exceptRooms,
flags: this.flags,
},
Array.isArray(room) ? room : [room]
);
Expand All @@ -305,6 +307,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
{
rooms: this.rooms,
except: this.exceptRooms,
flags: this.flags,
},
Array.isArray(room) ? room : [room]
);
Expand All @@ -321,6 +324,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
{
rooms: this.rooms,
except: this.exceptRooms,
flags: this.flags,
},
close
);
Expand Down

0 comments on commit d76024a

Please sign in to comment.