Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
[x] Create a TCP Server using the NodeJS native net module
[x] Create a Client Constructor
[x] When sockets connect to the server, a new Client instance should be made
[x] All clients should have a unique id property - this should come from the use of node-uuid
[x] When sockets are connected with the client pool they should be given event listeners for data, error, and close events
[x] When a socket emits the close event, the socket should be removed from the client pool
[x] When a socket emits the error event, the error should be logged on the server
[x] When a socket emits the data event, the data should be logged on the server and the commands below should be implemented
Custom commands
[x] @ALL should trigger a broadcast event
[x] @Nickname should allow a user change their nickname
[x] @dm should allow a user to send a message directly to another user by nick name or by their guest id (unique client id)
[x] when a user sends a message, their nickname should be printed