We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53695ad commit 8193d20Copy full SHA for 8193d20
packages/socket.io-adapter/lib/in-memory-adapter.ts
@@ -6,7 +6,7 @@ import { yeast } from "./contrib/yeast";
6
type Namespace = any;
7
type Socket = any;
8
9
-import * as WebSocket from 'ws';
+import * as WebSocket from "ws";
10
11
// @ts-expect-error
12
const canPreComputeFrame = typeof WebSocket?.Sender?.frame === "function";
@@ -336,7 +336,10 @@ export class Adapter extends EventEmitter {
336
});
337
}
338
339
- private apply(opts: BroadcastOptions, callback: (socket: Socket) => void): void {
+ private apply(
340
+ opts: BroadcastOptions,
341
+ callback: (socket: Socket) => void,
342
+ ): void {
343
const rooms = opts.rooms;
344
const except = this.computeExceptSids(opts.except);
345
0 commit comments