()
| 151 | }; |
| 152 | |
| 153 | const cleanupUpstreamWsSession = () => { |
| 154 | const cleanup = globalThis.__cchCleanupResponsesWsSession; |
| 155 | if (typeof cleanup !== "function") return; |
| 156 | try { |
| 157 | cleanup(responsesWsSessionId); |
| 158 | } catch (err) { |
| 159 | log("warn", "ws_upstream_session_cleanup_failed", { |
| 160 | error: String(err && err.message ? err.message : err), |
| 161 | }); |
| 162 | } |
| 163 | }; |
| 164 | |
| 165 | const dropPendingFrames = () => { |
| 166 | if (pending.length > 0) { |
no test coverage detected