Improve connection error handling

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

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 {