(url: string, projectId?: string)
| 75 | |
| 76 | return { |
| 77 | createSession(url: string, projectId?: string): Session { |
| 78 | const session: Session = { |
| 79 | id: generateId(), |
| 80 | url, |
| 81 | status: "active", |
| 82 | createdAt: new Date().toISOString(), |
| 83 | projectId, |
| 84 | }; |
| 85 | sessions.set(session.id, session); |
| 86 | |
| 87 | const event = eventBus.emit("session.created", session.id, session); |
| 88 | events.push(event); |
| 89 | |
| 90 | return session; |
| 91 | }, |
| 92 | |
| 93 | getSession(id: string): Session | undefined { |
| 94 | return sessions.get(id); |
no test coverage detected
searching dependent graphs…