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