Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentNotification ¶ added in v0.0.5
type DocumentNotification struct { ID string Type common.EntryType Version int Parent string Name string }
DocumentNotification notification of something
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub ws notificaiton hub
func (*Hub) Notify ¶
func (h *Hub) Notify(uid, deviceID string, doc DocumentNotification, eventType messages.NotificationType)
Notify sends a message to all connected clients
func (*Hub) NotifySync ¶ added in v0.0.5
NotifySync sends a message to all connected clients 1.5
Click to show internal directories.
Click to hide internal directories.