2021-09-16 12:18:11 +02:00
|
|
|
package ws
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mattermost/focalboard/server/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
// UpdateMsg is sent on block updates.
|
|
|
|
type UpdateMsg struct {
|
|
|
|
Action string `json:"action"`
|
|
|
|
Block model.Block `json:"block"`
|
|
|
|
}
|
|
|
|
|
2021-12-10 16:46:37 +01:00
|
|
|
// UpdateSubscription is sent on subscription updates.
|
|
|
|
type UpdateSubscription struct {
|
|
|
|
Action string `json:"action"`
|
|
|
|
Subscription *model.Subscription `json:"subscription"`
|
|
|
|
}
|
|
|
|
|
2021-09-16 12:18:11 +02:00
|
|
|
// WebsocketCommand is an incoming command from the client.
|
|
|
|
type WebsocketCommand struct {
|
|
|
|
Action string `json:"action"`
|
|
|
|
WorkspaceID string `json:"workspaceId"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
ReadToken string `json:"readToken"`
|
|
|
|
BlockIDs []string `json:"blockIds"`
|
|
|
|
}
|