Skip to content

Commit 207c0db

Browse files
refactor: break circular dependency (2)
1 parent abc93a9 commit 207c0db

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

lib/in-memory-adapter.ts

-11
Original file line numberDiff line numberDiff line change
@@ -505,14 +505,3 @@ function shouldIncludePacket(
505505
const notExcluded = sessionRooms.every((room) => !opts.except.has(room));
506506
return included && notExcluded;
507507
}
508-
509-
export {
510-
ClusterAdapter,
511-
ClusterAdapterWithHeartbeat,
512-
ClusterAdapterOptions,
513-
ClusterMessage,
514-
ClusterResponse,
515-
MessageType,
516-
ServerId,
517-
Offset,
518-
} from "./cluster-adapter";

lib/index.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export {
2+
SocketId,
3+
PrivateSessionId,
4+
Room,
5+
BroadcastFlags,
6+
BroadcastOptions,
7+
Session,
8+
Adapter,
9+
SessionAwareAdapter,
10+
} from "./in-memory-adapter";
11+
12+
export {
13+
ClusterAdapter,
14+
ClusterAdapterWithHeartbeat,
15+
ClusterAdapterOptions,
16+
ClusterMessage,
17+
ClusterResponse,
18+
MessageType,
19+
ServerId,
20+
Offset,
21+
} from "./cluster-adapter";

0 commit comments

Comments
 (0)