Documentation
¶
Index ¶
Constants ¶
View Source
const ( WbMsgSync uint64 = 0 WbMsgAwareness uint64 = 1 WbMsgAuth uint64 = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
SyncdYDocMap *SyncdYDocMap
// contains filtered or unexported fields
}
Server handles WebSocket connections for Yjs documents.
type SyncdYDoc ¶
type SyncdYDoc struct {
// contains filtered or unexported fields
}
SyncdYDoc is a Yjs document stored in memory along with the connections currently editing it.
func (*SyncdYDoc) RemoveConn ¶
func (*SyncdYDoc) WriteSyncStep1 ¶
func (*SyncdYDoc) WriteUpdate ¶
type SyncdYDocMap ¶
type SyncdYDocMap struct {
// contains filtered or unexported fields
}
YDocMap stores the Yjs document by id.
func NewSyncdYDocMap ¶
func NewSyncdYDocMap() *SyncdYDocMap
NewSyncdYDocMap creates a new SyncdYDocMap.
func (*SyncdYDocMap) GetOrCreate ¶
func (sm *SyncdYDocMap) GetOrCreate(id string) *SyncdYDoc
Click to show internal directories.
Click to hide internal directories.