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

Method constructor

hooks/useAgentSession.ts:178–183  ·  view source on GitHub ↗
(public readonly status: Exclude<EventStreamConnectionStatus, "connected">)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected