MCPcopy
hub / github.com/tldraw/tldraw / close

Method close

packages/sync-core/src/lib/TLSyncRoom.ts:78–78  ·  view source on GitHub ↗

* Close the socket connection with optional status code and reason. * * @param code - WebSocket close code (optional) * @param reason - Human-readable close reason (optional)

(code?: number, reason?: string)

Source from the content-addressed store, hash-verified

76 * @param reason - Human-readable close reason (optional)
77 */
78 close(code?: number, reason?: string): void
79}
80
81/**

Callers 15

closeMethod · 0.65
constructorMethod · 0.65
connectMethod · 0.65
hardResetFunction · 0.65
ArrowClipPathFunction · 0.65
preloadAlphaDataFunction · 0.65
getPathFunction · 0.65
getXBoxPathFunction · 0.65

Implementers 3

ClientWebSocketAdapterpackages/sync-core/src/lib/ClientWebSo
MockSocketpackages/sync-core/src/lib/TLSyncClien
ServerSocketAdapterpackages/sync-core/src/lib/ServerSocke

Calls

no outgoing calls

Tested by 5

constructorMethod · 0.52
constructorMethod · 0.52
constructorMethod · 0.52
pullFunction · 0.52
startFunction · 0.52