|
|
|
@ -70,6 +70,7 @@ func (holder *WSHolder) HandleNewWebSocketMessages(ws *WS, output chan Message)
|
|
|
|
|
holder.Remove(ws.User.Name) |
|
|
|
|
|
|
|
|
|
disconnectionMessage := Message{ |
|
|
|
|
TimeStamp: uint64(time.Now().UnixMilli()), |
|
|
|
|
From: UserSystem, |
|
|
|
|
Contents: fmt.Sprintf("%s has disconnected", ws.User.Name), |
|
|
|
|
} |
|
|
|
@ -83,6 +84,7 @@ func (holder *WSHolder) HandleNewWebSocketMessages(ws *WS, output chan Message)
|
|
|
|
|
holder.Remove(ws.User.Name) |
|
|
|
|
|
|
|
|
|
disconnectionMessage := Message{ |
|
|
|
|
TimeStamp: uint64(time.Now().UnixMilli()), |
|
|
|
|
From: UserSystem, |
|
|
|
|
Contents: fmt.Sprintf("%s has disconnected", ws.User.Name), |
|
|
|
|
} |
|
|
|
|