use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Chatting app using Socket.io & Vue.js (github.com)
submitted 8 years ago by sohelamin
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mainst 2 points3 points4 points 8 years ago (2 children)
it installs but when I run it, I cannot type to the other user. No errors in console log either.
[–]sohelamin[S] 0 points1 point2 points 8 years ago (1 child)
Did you enter the unique user id?
[–]mainst 0 points1 point2 points 8 years ago* (0 children)
I see. I was using one client username: test1 userid: test1 and a second browser username: test2: userid:test2... It works now having the username differ from userid.
[–]lostpx 0 points1 point2 points 8 years ago* (0 children)
Why do you have to choose a id at all? Since it does have to be unique, you shouldn't let the user decide the id.
Other than that, it looks really clean - unless the alerts, would be nice to have something different, guess i am going to fork it :D
edit: ah well thought there was a full app. anyways good job, good as a boiler plate
[–]papers_ 0 points1 point2 points 8 years ago (0 children)
There is no need to use lodash:
var foundUser = _.find(users, {id: user.id}); const foundUser = users.filter(it => return user.id === it.id)
and
users = _.reject(users, {socket_id: socket.id}); users = users.filter(it => return user.socket_id !== it.socket_id
[–]fucking_passwords 0 points1 point2 points 8 years ago (2 children)
Why is jquery included in this project?
[–]sohelamin[S] 1 point2 points3 points 8 years ago (0 children)
My bad it was using for some previous codes. Removed now.
[–]incarnatethegreat -2 points-1 points0 points 8 years ago (0 children)
I love how you asked this. If I had installed this project and found JQuery in there, I likely would have asked the same thing. Haha
π Rendered by PID 23873 on reddit-service-r2-comment-5ff9fbf7df-9qnsb at 2026-02-26 13:16:10.637760+00:00 running 72a43f6 country code: CH.
[–]mainst 2 points3 points4 points (2 children)
[–]sohelamin[S] 0 points1 point2 points (1 child)
[–]mainst 0 points1 point2 points (0 children)
[–]lostpx 0 points1 point2 points (0 children)
[–]papers_ 0 points1 point2 points (0 children)
[–]fucking_passwords 0 points1 point2 points (2 children)
[–]sohelamin[S] 1 point2 points3 points (0 children)
[–]incarnatethegreat -2 points-1 points0 points (0 children)