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

Method SetCollabRoomManager

internal/server/server.go:677–679  ·  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

675// self-host build that wants the editor without collab can leave
676// this unwired without surfacing surprise behaviour.
677func (s *Server) SetCollabRoomManager(rm *collab.RoomManager) {
678 s.collab = rm
679}
680
681// SetWebhookDispatcher attaches a webhook dispatcher for outgoing
682// notifications. Delivery goroutines are routed through s.goAsync so they're

Callers 2

testServerWithCollabFunction · 0.80
serveCmdFunction · 0.80

Calls

no outgoing calls

Tested by 1

testServerWithCollabFunction · 0.64