MCPcopy
hub / github.com/partykit/partykit / ConnectionManager

Interface ConnectionManager

packages/partykit/facade/connection.ts:176–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176export interface ConnectionManager {
177 getCount(): number;
178 getConnection<TState>(id: string): Party.Connection<TState> | undefined;
179 getConnections<TState>(
180 tag?: string
181 ): IterableIterator<Party.Connection<TState>>;
182 accept(connection: Party.Connection, tags: string[]): Party.Connection;
183
184 // This can be removed when Party.connections is removed
185 legacy_getConnectionMap(): Map<string, Party.Connection>;
186}
187
188/**
189 * When not using hibernation, we track active connections manually.

Callers 15

getConnectionMethod · 0.65
getConnectionsMethod · 0.65
Class · 0.65
onRequestMethod · 0.65
makeSyncMessageMethod · 0.65
_broadcastMethod · 0.65
onRequestMethod · 0.65
onRequestMethod · 0.65
onConnectFunction · 0.65
socketFunction · 0.65
fetchMethod · 0.65
fetchFunction · 0.65

Implementers 2

InMemoryConnectionManagerpackages/partykit/facade/connection.ts
HibernatingConnectionManagerpackages/partykit/facade/connection.ts

Calls

no outgoing calls

Tested by

no test coverage detected