diff --git a/plugin/api.go b/plugin/api.go index b5c5a7be04..132c47a038 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -422,9 +422,9 @@ type API interface { KVList(page, perPage int) ([]string, *model.AppError) // PublishWebSocketEvent sends an event to WebSocket connections. - // event is the type and will be prepended with "custom__" - // payload is the data sent with the event. Interface values must be primitive Go types or mattermost-server/model types - // broadcast determines to which users to send the event + // event is the type and will be prepended with "custom__". + // payload is the data sent with the event. Interface values must be primitive Go types or mattermost-server/model types. + // broadcast determines to which users to send the event. PublishWebSocketEvent(event string, payload map[string]interface{}, broadcast *model.WebsocketBroadcast) // HasPermissionTo check if the user has the permission at system scope.