MCPcopy Index your code
hub / github.com/electric-sql/pglite / handleClose

Method handleClose

packages/pglite-socket/src/index.ts:228–233  ·  view source on GitHub ↗

* Handle socket close event

()

Source from the content-addressed store, hash-verified

226 * Handle socket close event
227 */
228 private handleClose(): void {
229 this.log(`handleClose: socket closed`)
230
231 this.dispatchEvent(new CustomEvent('close'))
232 this.detach(false) // Already closed, just clean up
233 }
234
235 /**
236 * Print data in hex and ascii to the console

Callers 1

attachMethod · 0.95

Calls 2

logMethod · 0.95
detachMethod · 0.95

Tested by

no test coverage detected