-
Notifications
You must be signed in to change notification settings - Fork 368
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
beautify code #15
base: lesson-5
Are you sure you want to change the base?
beautify code #15
Conversation
@@ -18,7 +18,7 @@ | |||
"homepage": "https://github.com/iamshaunjp/websockets-playlist#readme", | |||
"dependencies": { | |||
"express": "^4.15.2", | |||
"socket.io": "^1.7.3" | |||
"socket.io": "^2.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated socket.io version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because of vulnerabilities in the old version
btn = document.getElementById('send'), | ||
output = document.getElementById('output'), | ||
feedback = document.getElementById('feedback'); | ||
handle = document.getElementById('handle'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed indentation
socket.emit('typing', handle.value); | ||
}) | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added missing simicolon
No description provided.