Skip to content

Commit

Permalink
refactor: break circular dependency (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Feb 22, 2024
1 parent abc93a9 commit 207c0db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/in-memory-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,3 @@ function shouldIncludePacket(
const notExcluded = sessionRooms.every((room) => !opts.except.has(room));
return included && notExcluded;
}

export {
ClusterAdapter,
ClusterAdapterWithHeartbeat,
ClusterAdapterOptions,
ClusterMessage,
ClusterResponse,
MessageType,
ServerId,
Offset,
} from "./cluster-adapter";
21 changes: 21 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export {
SocketId,
PrivateSessionId,
Room,
BroadcastFlags,
BroadcastOptions,
Session,
Adapter,
SessionAwareAdapter,
} from "./in-memory-adapter";

export {
ClusterAdapter,
ClusterAdapterWithHeartbeat,
ClusterAdapterOptions,
ClusterMessage,
ClusterResponse,
MessageType,
ServerId,
Offset,
} from "./cluster-adapter";

0 comments on commit 207c0db

Please sign in to comment.