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

File server.ts

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

Source from the content-addressed store, hash-verified

1import { createServer } from 'http'
2import { WebSocketMinimal } from '@tldraw/sync-core'
3import express from 'express'
4import { Server } from 'socket.io'

Callers

nothing calls this directly

Calls 15

makeOrLoadRoomFunction · 0.90
storeAssetFunction · 0.90
loadAssetFunction · 0.90
unfurlFunction · 0.90
nextFunction · 0.85
onMethod · 0.80
disconnectMethod · 0.80
parseMethod · 0.80
handleSocketConnectMethod · 0.80
listenMethod · 0.80
jsonMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected