TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I have written a basic chat application using node.js, what do you guys think?

15 pointsby serkanyersenover 13 years ago

11 comments

serkanyersenover 13 years ago
Haha. Either heroku or Node.js couldn't handle the Hacker News traffic. If you would like to see the code<p><a href="https://github.com/serkanyersen/Basic-Chat" rel="nofollow">https://github.com/serkanyersen/Basic-Chat</a>
评论 #3389940 未加载
serkanyersenover 13 years ago
I see people are complaing about the XHR requests. That's not my fault. I'm using heroku for hosting and it does not support websockets, so I have to force socket.io to use ajax long polling. That's actually heroku's solution.<p>But if you run it on your server or Cloud9 ide it will work just fine.
评论 #3389866 未加载
bpfhover 13 years ago
Seems fairly usable atm. A few observations: there is an XSS vulnerability as you probably learned by now. Also, there was a moment when someone was submitting content and it appeared under my nick "bpfh".<p>Other than that, kudos for a simple well-functioning chat.
评论 #3390008 未加载
sppover 13 years ago
I've written a (very) basic mud server in node.js (in like 8 hours). Maybe you'll be interested: <a href="https://github.com/farevalod/nodemud" rel="nofollow">https://github.com/farevalod/nodemud</a> (I'd appreciate some comments on it too!)
评论 #3389847 未加载
chjjover 13 years ago
I think writing a chat app is the rite of passage for node developers at this point.
评论 #3389906 未加载
评论 #3389832 未加载
jiyinyiyongover 13 years ago
UI is great. I wrote one serveral days ago, aiming to offer real time chat featute(http:zhonglichat.cnodejs.net), new I see how ugly that is.. Nodejs moke chating really fun.
akkishoreover 13 years ago
Isn't this similar to <a href="http://chat.nodejs.org/" rel="nofollow">http://chat.nodejs.org/</a>?
评论 #3389810 未加载
LeafStormover 13 years ago
It seems that when the client loses the connection, it doesn't attempt to reconnect.
评论 #3389834 未加载
akivabambergerover 13 years ago
ugh stop copying the node.js chat code and acting like it's something brand new. this is publicly available on rydahl's github.
评论 #3390046 未加载
limanoitover 13 years ago
ya..save name button does not do anything and it is almost similar to the chat demo of node.js
bhaaaiover 13 years ago
I can't enter the chat. Save Name button does nothing! I'm on firefox 3.6.17.
评论 #3389813 未加载