()
| 268 | |
| 269 | return { |
| 270 | async dispose() { |
| 271 | for (const websocketFetch of websocketFetches) websocketFetch.close() |
| 272 | websocketFetches.length = 0 |
| 273 | }, |
| 274 | async event(input) { |
| 275 | if (input.event.type !== "session.deleted") return |
| 276 | for (const websocketFetch of websocketFetches) websocketFetch.remove(input.event.properties.info.id) |