2021-08-27 10:59:14 +02:00
|
|
|
package ws
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mattermost/focalboard/server/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
websocketActionAuth = "AUTH"
|
|
|
|
websocketActionSubscribeWorkspace = "SUBSCRIBE_WORKSPACE"
|
|
|
|
websocketActionUnsubscribeWorkspace = "UNSUBSCRIBE_WORKSPACE"
|
|
|
|
websocketActionSubscribeBlocks = "SUBSCRIBE_BLOCKS"
|
|
|
|
websocketActionUnsubscribeBlocks = "UNSUBSCRIBE_BLOCKS"
|
|
|
|
websocketActionUpdateBlock = "UPDATE_BLOCK"
|
2021-09-16 21:31:02 +02:00
|
|
|
websocketActionUpdateConfig = "UPDATE_CLIENT_CONFIG"
|
2021-08-27 10:59:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type Adapter interface {
|
|
|
|
BroadcastBlockChange(workspaceID string, block model.Block)
|
|
|
|
BroadcastBlockDelete(workspaceID, blockID, parentID string)
|
2021-09-16 21:31:02 +02:00
|
|
|
BroadcastConfigChange(clientConfig model.ClientConfig)
|
2021-08-27 10:59:14 +02:00
|
|
|
}
|