Re:I made a browser-based chat app. Based on node.js and nod...
by dprice1 on Tuesday August 10, 2010 @02:08AM
(#1590629)
I got a series of "lol" popup dialogs, then was pushed out of the room and returned to Hacker News. I was fairly frightened by this turn of events and won't return using my normal browser without some assurances that I'm not going to be victimized. I guess I'll fire up a virgin firefox profile and try some more.
On the user interface side, it would make sense if any line starting with "/" was interpreted as a command (legit or not). Otherwise, you'll have a lot of "/help" and so forth in the channels. Especially since "/print" is a valid command.
Update: Not sure, but I think someone has now injected some JS which causes everyone else in the channel to continuously spam it with the word "crash". Good times...
Re:I made a browser-based chat app. Based on node.js and nod...
by profitoftruth85 on Monday August 09, 2010 @10:52PM
(#1590286)
This should definitely be a feature. Also, when somebody posts it scrolls down to the bottom. Sometimes the bottom half of the window showing the chat turns black and blocks out the text in opera on mac.
Re:I made a browser-based chat app. Based on node.js and nod...
by keyle on Monday August 09, 2010 @11:54PM
(#1590385)
One neat thing would be what you would expect of a IRC client: when you hit <tab> it auto completes the nickname. That would improve actual discussions.
Re:I made a browser-based chat app. Based on node.js and nod...
by carbocation on Monday August 09, 2010 @11:41PM
(#1590368)
If someone types an extended string of unbroken characters, you should break that string for them. If you don't, the horizontal autoscroll bar appears and actually blocks the 1 most recent comment.
Re:I made a browser-based chat app. Based on node.js and nod...
by jerf on Monday August 09, 2010 @11:41PM
(#1590369)
Unless you've fixed a XSS bug in the hour since it was posted here, kudos on being the first Node.js chat site I've seen like this that was not vulnerable to XSS discoverable within ten seconds.
Re:I made a browser-based chat app. Based on node.js and nod...
by jackowayed on Monday August 09, 2010 @10:59PM
(#1590300)
infinte rooms. so you just go to twitch.me/foobar and send other people that link. You're chatting with just those people.
Sure, you could host node_chat yourself, but a) then you have to host node_chat yourself, and b) if you found yourself in a situation where you wanted 2 rooms open at once, you'd have to start up another instance of node_chat.
Re:I made a browser-based chat app. Based on node.js and nod...
by mike-cardwell on Tuesday August 10, 2010 @04:13AM
(#1590837)
Beautiful.
However, your restrictions on names are too strict. I should be able to use the name 話筒. Nice that I can use chinese characters in the chat room name though.
Do you have any intention to monetise this? If so, do you have any ideas you'd be willing to share?
Re:I made a browser-based chat app. Based on node.js and nod...
by mike-cardwell on Tuesday August 10, 2010 @04:17AM
(#1590841)
Also, do you intend on making it possible to use without javascript enabled? An iframe for the chat input and one for the output each doing long polls with meta refreshes should do it. Considerably less efficient of course, but opens the app to more users...
Re:I made a browser-based chat app. Based on node.js and nod...
by statictype on Tuesday August 10, 2010 @01:00AM
(#1590504)
Interesting because injecting script tags shows them properly escaped but also seems to be evaluating them. Not sure how both can happen at the same time.
Re:I made a browser-based chat app. Based on node.js and nod...
by woogley on Tuesday August 10, 2010 @12:33AM
(#1590464)
I think I would be more impressed if this used WebSockets or something. How many Node chat apps have we seen? .. Actually, how many AJAX chat apps have we seen? I'd like to see a different network project, or at least one that uses sockets instead of AJAX polling ..
Re:I made a browser-based chat app. Based on node.js and nod...
by bl4k on Tuesday August 10, 2010 @02:18AM
(#1590643)
you need to re-evaluate how you are handling characters. you aren't escaping and encoding properly. there is no point in just smashing the little bugs that people bring up because it will still leave other things open. time to re-eval.
On the user interface side, it would make sense if any line starting with "/" was interpreted as a command (legit or not). Otherwise, you'll have a lot of "/help" and so forth in the channels. Especially since "/print" is a valid command.
Update: Not sure, but I think someone has now injected some JS which causes everyone else in the channel to continuously spam it with the word "crash". Good times...
very cool and thought provoking. BTW, I was "foo". :)
Feature request: When I log out & come back to a room, the conversation should still be there.
edit: interesting, someone just downvoted a bunch of comments here. HN has grown large and attractive to idjits. I upvoted the zeros back to ones.
Thing is twich rooms don't hold any history. it works more like throwaway chatrooms atm.
Persistent rooms - I'm strongly considering implementing down the road.
http://twich.me/any_room_name or http://2wi.ch/any_room_name
Works on iOS and Android too.
Comments and feedback appreciated.
But, unfortunately if you go to this link...
(had to stick it in code block because HN auto marks it as spam)Here's my clone with a shared jukebox: http://github.com/akkartik/node_chat
Sure, you could host node_chat yourself, but a) then you have to host node_chat yourself, and b) if you found yourself in a situation where you wanted 2 rooms open at once, you'd have to start up another instance of node_chat.
You leaning towards open sourcing it or selling access to chat servers?
However, your restrictions on names are too strict. I should be able to use the name 話筒. Nice that I can use chinese characters in the chat room name though.
Do you have any intention to monetise this? If so, do you have any ideas you'd be willing to share?
and post the link to get others chatting with you. it's getting too crowded in the main room.
How about you build one?
heaps of people have injected js too