{"record":{"id":"e02b9f0d9eb3b853","repo":"diegosouzapw/OmniRoute","slug":"websocket-not-open","errorCode":null,"errorMessage":"WebSocket not open","messagePattern":"WebSocket not open","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chipotle.ts","lineNumber":256,"sourceCode":"      this.sendSockJS(this.buildStompSend(\"/app/send\", payload));\n    });\n  }\n\n  private buildStompConnect(): string {\n    return `CONNECT\\naccept-version:1.1,1.0\\nheart-beat:0,0\\nX-CSRF-TOKEN:${this.session!.csrfToken}\\n\\n\\0`;\n  }\n\n  private buildStompSubscribe(destination: string, id: string): string {\n    return `SUBSCRIBE\\ndestination:${destination}\\nid:${id}\\n\\n\\0`;\n  }\n\n  private buildStompSend(destination: string, body: string): string {\n    return `SEND\\ndestination:${destination}\\ncontent-type:application/json\\ncontent-length:${Buffer.byteLength(body)}\\n\\n${body}\\0`;\n  }\n\n  private sendSockJS(stompFrame: string): void {\n    if (!this.ws || this.ws.readyState !== 1) {\n      throw new Error(\"WebSocket not open\");\n    }\n    this.ws.send(JSON.stringify([stompFrame]));\n  }\n\n  async close(): Promise<void> {\n    if (this.ws) {\n      this.ws.close();\n      this.ws = null;\n    }\n    this.stompConnected = false;\n    this.session = null;\n  }\n}\n\n// ── Client pool ──────────────────────────────────────────────────────────\n\nconst POOL_MAX = 5;\nconst pool: AmeliaClient[] = [];","sourceCodeStart":238,"sourceCodeEnd":274,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chipotle.ts#L238-L274","documentation":"Error \"WebSocket not open\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chipotle.ts:256 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}