()
| 347 | * End the session on the current isolation scope. |
| 348 | */ |
| 349 | export function endSession(): void { |
| 350 | const isolationScope = getIsolationScope(); |
| 351 | const currentScope = getCurrentScope(); |
| 352 | |
| 353 | const session = currentScope.getSession() || isolationScope.getSession(); |
| 354 | if (session) { |
| 355 | closeSession(session); |
| 356 | } |
| 357 | _sendSessionUpdate(); |
| 358 | |
| 359 | // the session is over; take it off of the scope |
| 360 | isolationScope.setSession(); |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * Sends the current Session on the scope |
no test coverage detected