https://github.com/Priya411/CodeUGroup3/blob/master/src/codeu/chat/server/Server.java#L243
The server gets input from the client and creates objects based on that input. What happens if the user enters invalid data? How is this handled?
I haven't tested this too hard, so this might already be handled elsewhere.
Another thing worth thinking about: in "real" applications, you'd generally have two layers of error checks: one on the client side to make sure users don't accidentally enter invalid data, and another layer on the server side in case a bad user purposely tries to get around the client-side checks. For our purposes it's probably okay to only have one layer, but it's worth thinking about how you'd do this in the "real world".
https://github.com/Priya411/CodeUGroup3/blob/master/src/codeu/chat/server/Server.java#L243
The server gets input from the client and creates objects based on that input. What happens if the user enters invalid data? How is this handled?
I haven't tested this too hard, so this might already be handled elsewhere.
Another thing worth thinking about: in "real" applications, you'd generally have two layers of error checks: one on the client side to make sure users don't accidentally enter invalid data, and another layer on the server side in case a bad user purposely tries to get around the client-side checks. For our purposes it's probably okay to only have one layer, but it's worth thinking about how you'd do this in the "real world".