Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
cors from
'@fastify/cors'
2
import
websocketPlugin from
'@fastify/websocket'
3
import
fastify from
'fastify'
4
import
type
{ RawData } from
'ws'
Callers
nothing calls this directly
Calls
13
makeOrLoadRoom
Function · 0.90
storeAsset
Function · 0.90
loadAsset
Function · 0.90
unfurl
Function · 0.90
on
Method · 0.80
handleSocketConnect
Method · 0.80
listen
Method · 0.80
register
Method · 0.65
get
Method · 0.65
put
Method · 0.65
send
Method · 0.65
error
Method · 0.65
Tested by
no test coverage detected