[Gekidou MM-39728] - Websocket Events - Preferences (#5865)

This commit is contained in:
Jason Frerich
2022-01-21 17:45:32 -06:00
committed by GitHub
parent 2013f39a61
commit 5fd8121cf9
4 changed files with 102 additions and 4 deletions

16
types/api/websocket.ts Normal file
View File

@@ -0,0 +1,16 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export type WebsocketBroadcast = {
omit_users: Dictionary<boolean>;
user_id: string;
channel_id: string;
team_id: string;
}
export type WebSocketMessage = {
event: string;
data: any;
broadcast: WebsocketBroadcast;
seq: number;
}