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