Skip to content

lab6-Jeremiah #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jtwalters25
Copy link

No description provided.



socket.on('error', function(err){

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're not handling your error event here. Something should go inside of this function.

README.md Outdated
### Chat Features

* @all triggers a broadcast event
* @nickname allows a user change their nickname
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your code is looking for @NewName not @Nickname.

server.js Outdated
return;
}

socket.destroy(error);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is causing your socket to close when a user enters a command that does not satisfy the condition of any of your if blocks. Instead you should continuing down to the default emitter on line 77. You should remove this line from here. You could put it in its own event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants