| 174 | } |
| 175 | |
| 176 | export 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. |
no outgoing calls
no test coverage detected