MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / SetCollabRoomManager

Method SetCollabRoomManager

internal/server/server.go:1326–1328  ·  view source on GitHub ↗

SetCollabRoomManager attaches a Yjs collab RoomManager (PLAN-1248). When set, the /api/v1/collab/{itemID} WebSocket endpoint hands new connections to the manager for op-log replay + fan-out. When nil, the endpoint exists but answers 503 — that's intentional so a self-host build that wants the editor

(rm *collab.RoomManager)

Source from the content-addressed store, hash-verified

1324// self-host build that wants the editor without collab can leave
1325// this unwired without surfacing surprise behaviour.
1326func (s *Server) SetCollabRoomManager(rm *collab.RoomManager) {
1327 s.collab = rm
1328}
1329
1330// SetWebhookDispatcher attaches a webhook dispatcher for outgoing
1331// notifications. Delivery goroutines are routed through s.goAsync so they're

Callers 9

testServerWithCollabFunction · 0.80
ackLossServerFunction · 0.80
testServerPostgresFunction · 0.80
joinAtMethod · 0.80
startCollabFunction · 0.80
newRecoveryFixtureFunction · 0.80
serveCmdFunction · 0.80

Calls

no outgoing calls

Tested by 8

testServerWithCollabFunction · 0.64
ackLossServerFunction · 0.64
testServerPostgresFunction · 0.64
joinAtMethod · 0.64
startCollabFunction · 0.64
newRecoveryFixtureFunction · 0.64