richinsley / comfy2go

A Go-based API that acts as a bridge to the ComfyUI backend
MIT License
49 stars 13 forks source link

Proposal: Websocket health cheack & reconn #8

Open Sylariam opened 7 months ago

Sylariam commented 7 months ago

I've experiencing several websocket abnoral closure. This happens randomly. 2024/03/31 18:04:24 websocket.go:90: Error when reading from WebSocket: websocket: close 1006 (abnormal closure): unexpected EOF Once happened, new prompt could not receive PromptMessage afterwards.

Sylariam commented 7 months ago

Or we just have to create a new conn everytime we initiate a new prompt?

richinsley commented 7 months ago

It does need some attention. It was the first piece I wrote, and I haven't circled back to improving it yet. I'll take a look at it in the next release.