MCPcopy
hub / github.com/tldraw/tldraw / server.ts

File server.ts

templates/simple-server-example/src/server/server.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import cors from '@fastify/cors'
2import websocketPlugin from '@fastify/websocket'
3import fastify from 'fastify'
4import type { RawData } from 'ws'

Callers

nothing calls this directly

Calls 13

makeOrLoadRoomFunction · 0.90
storeAssetFunction · 0.90
loadAssetFunction · 0.90
unfurlFunction · 0.90
onMethod · 0.80
handleSocketConnectMethod · 0.80
listenMethod · 0.80
registerMethod · 0.65
getMethod · 0.65
putMethod · 0.65
sendMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected