Improve connection error handling

This commit is contained in:
Tulir Asokan committed 2019-05-15 23:04:09 +03:00
1 parent 69879df346
commit 6b73c66e12
7 files changed
+188 -17

No files matched your search

+3 -1
View File
@@ -26,7 +26,8 @@ import (
type CommandType string
const (
CommandPicture CommandType = "picture"
CommandPicture CommandType = "picture"
CommandDisconnect CommandType = "disconnect"
)
type Command struct {
@@ -34,6 +35,7 @@ type Command struct {
JID string `json:"jid"`
*ProfilePicInfo
Kind string `json:"kind"`
}
type CommandHandler interface {