Archived
2
0

add system error.

This commit is contained in:
Miroslav Šedivý
2021-08-15 16:05:26 +02:00
parent 9e466b08cc
commit 313cd55049
8 changed files with 34 additions and 11 deletions

View File

@ -2,6 +2,7 @@ package event
const (
SYSTEM_DISCONNECT = "system/disconnect"
SYSTEM_ERROR = "system/error"
)
const (

View File

@ -10,8 +10,9 @@ type Message struct {
Event string `json:"event"`
}
type Disconnect struct {
type SystemMessage struct {
Event string `json:"event"`
Title string `json:"title"`
Message string `json:"message"`
}