MCPcopy Create free account
hub / github.com/agegr/pi-web / EventStreamConnectionError

Class EventStreamConnectionError

hooks/useAgentSession.ts:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175};
176
177class EventStreamConnectionError extends Error {
178 constructor(public readonly status: Exclude<EventStreamConnectionStatus, "connected">) {
179 super(status === "timeout"
180 ? "Timed out connecting to the agent event stream. Please try again."
181 : "Failed to connect to the agent event stream. Please try again.");
182 this.name = "EventStreamConnectionError";
183 }
184}
185
186function createNoticeId(): string {
187 if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected