andrewbelt / hack.chat Goto Github PK
View Code? Open in Web Editor NEWa minimal, distraction-free chat application
Home Page: https://hack.chat/
License: MIT License
a minimal, distraction-free chat application
Home Page: https://hack.chat/
License: MIT License
the tripcode of users should already be sent in the onlineAdd package to all clients imo
i am trying to set this up locally i have the server on 0.0.0.0:6000 and the client on 0.0.0.0:8080 but when i open a channel on the client it loads and just stays there without showing the nickname window
$ {?} $
This creates a link instead of using Latex.
First, thanks for your Hack Chat !
Is it possible to install this on NAS Synology ? I already installed node.js on the nas, but I don't what I have to do next.
Thanks
I've upgraded nodejs to v.0.12.7, the server started once and then it wouldn't a second time, this is the error(s) it produced (this time);
ubuntu@ip-172-31-0-10:/usr/share/nginx/xaerolimit.net/hack.chat$ npm start
[email protected] start /usr/share/nginx/xaerolimit.net/hack.chat
node server.js
Loaded config.json
Started server on 54.152.16.73:6060
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1139:19)
at listen (net.js:1182:10)
at net.js:1280:9
at dns.js:85:18
at process._tickCallback (node.js:355:11)
at Function.Module.runMain (module.js:503:11)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Linux 3.13.0-44-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node server.js'.
npm ERR! This is most likely a problem with the hack.chat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls hack.chat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/share/nginx/xaerolimit.net/hack.chat/npm-debug.log
ubuntu@ip-172-31-0-10:/usr/share/nginx/xaerolimit.net/hack.chat$ npm owner ls hack.chat
npm ERR! owner ls Couldn't get owner data hack.chat
npm ERR! Linux 3.13.0-44-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "owner" "ls" "hack.chat"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code E404
npm ERR! 404 Not Found: hack.chat
npm ERR! 404
npm ERR! 404 'hack.chat' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/share/nginx/xaerolimit.net/hack.chat/npm-debug.log
ubuntu@ip-172-31-0-10:/usr/share/nginx/xaerolimit.net/hack.chat$
Some restricted markdown formatting would allow messages with bold, emphasized and a few more:
js var example = require('example');
example
)and a few more, whereas a subset of the markdown syntax is restricted:
Hi there!
It would be great if hack.chat would integrate with Matrix (an open standard for online comms - http://matrix.org). That way I could talk to lots of other users on other apps via hack.chat! This can be achieved either by adding support for the Matrix protocol directly - or via a bridge (see http://matrix.org/docs/guides/application_services.html)!
First of all, nice project.
Debian (8) users need to install node, git and npm before starting. Server side instruction are good, just use node server.js. Issue comes with client setting.
Error after running make:
mkdir -p schemes
lessc --global-var='name=atelier-lakeside' scheme.less > schemes/atelier-lakeside.css
Makefile:8: recipe for target 'schemes/atelier-lakeside.css' failed
make: *** [schemes/atelier-lakeside.css] Error 1
Have a nice day.
Maybe possibility to rename without refresh the page?
even after ip rate limited, new chat count increases.
The whitespace is already preserved, so another enhancement to the viewing of code might be cool.
Each time the user enters in a new room, he must enter his user name.
It may be stored in localStorage to avoid it.
I'm trying to install hack.chat on a ubuntu 14.04 vm and I can't seem to get it to work. I have installed git, curl, npm, nodejs, and nodes-legacy.
when I run npm start I get this
[email protected] start /root/hack.chat
node server.js
/root/hack.chat/server.js:60
for (var client of server.clients) {
^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3
npm ERR! weird error 8
npm ERR! not ok code 0
The most I can get out of hackbot before the rate-limiter kicks in is usually 3 lines or so. Possibly add some form of password verification for users to secure names (Like that of bots) and remove rate limits for those users.
Hello.. I managed to get everything all 'n running via ngnix server. I am trying to figure out how to get it hosted on TOR. I know how to host website via nginx, but how do I configure hack.chat via .onion on TOR? Thanks!
Escape clearing isn't working on live as described in the commit 8492730
there is no make command on windows. how would one start the server on windows?
Please add timestamps in the chat window ala IRC.
It appears that the check for the username against the password of the admin is not rate limited.
Would be nice to have encryption by default like OTR.
There is a library here:
Off-the-Record Messaging Protocol implemented in JavaScript
https://arlolra.github.io/otr/
ok
People keep spamming, drawing massive dicks, and linking CP.
Currently without cookies it just looks broken - you don't even get to see the intro text.
It'd be nice to explain the project still, and tell the user that they need cookies enabled if that's the case.
The change of /chat-ws
to the line which used to be commented out bellow is now causing security errors, because it doesn't use wss
.
When trying to make the client version with the 'MAKE' command, the following error appears:
$ make
jade index.jade
Makefile:15: recipe for target 'index.html' failed
make: *** [index.html] Segmentation fault (core dumped)
Disconnected clients should repeatedly attempt to log in.
It would be nice if you are within say 20px of the bottom of the screen (scroll), then an added line extends the height of the screen... the screen should scrollTo the height, so that new comments are always visible. (This doesn't work in the latest Chrome under ubuntu).
While trying to use hack.chat from behind a proxy I couldn't see any prompt for the nick and was unable to use the site at all. I tried changing browsers without success; Google Chrome, Mozilla Firefox and even Conkeror failed. Surprisingly, on Android I was able to get it working from both Chrome and Firefox browsers. I have no idea how that worked, the Android device was connected to the same Wi-Fi.
On checking the Javascript console on Chrome, I found this error.
WebSocket connection to 'wss://hack.chat/chat-ws' failed: Error in connection establishment: net::ERR_PROXY_CONNECTION_FAILED
I searched a bit and found that there is some problem with WebSocket working with proxies.
ex... /channel lobby
would do a location.replace('/?' + input)
Also, per #1 /nick
would be useful.
the admin could have like a tripcode saying "admin" in clear text or something like that
If many users in the channel execute some code like this:
var x="";
for(var i=0;i<65534;i++) x+="[";
setInterval(function() { ws.send(x); }, 0);
It'll flood the server with error messages and try/catch isn't the fastest so if many people do it it could probably crash. Its missing POLICE.frisk
It would be nice if the favicon changed to the amount of missed messages, so i'm able to pin the tab in chrome to only see the icon but still not miss any messages
It would be nice to see a switch to a websocket wrapper such as socket.io, sockjs/shoe or another option in order to allow for users behind proxies or in older browser to use the application.
Related to #56
Allow enable/disable of audio prompts on chat.
The HTTP version of the site redirects to HTTPS via 301 Moved Permanently, but if someone visits http://hack.chat/?my_secret_channel, that channel’s name is still compromised since it is transmitted before the switch to an encrypted connection can happen. The server should send an HSTS header to avoid this if the user agent visited hack.chat in the past.
Obviously, first thing I went to do was break the site. You've fixed the latex in the name which was good for disabling LaTeX names that would non-stop crash the room.
This goes over the open issue on the KaTeX library.
Is there a way to log chat history on the server if it's desired?
Mobile Android chrome renders like desktop, ends up super small with wide left and right margins.
Hello: I just want to know if hack.chat software is encrypted? I don't see it via FAQ or README. Let me know.
It would be cool if you could make a version in which the user was forced to login with their Twitter credentials. That way you build a community without having to deal with membership. Each time I entered the room I would get my Twitter handle like @RichGriese and as a person visited the community more, you would get to know the person. And... be able to follow them via Twitter. This would eliminate the need to have any kind of user registration within the system, but would allow for unique and persistent nicknames.
It would also enable hack.chat to offer kind of meeting rooms for the entire Twitter community.
Cheers!
Hello I'm able to install it on my Localhost to test this code. it worked and when i change my url to new group or channel i got no popup for Adding Name and Nothing else working, can't message etc Javascripts not working.
Can you add a delete channel command to the sidebar?
It should be noted that on Debian/Ubuntu based distributions that the packages npm, nodejs and nodejs-legacy are required to build hack.chat (after cloning).
Tried to set my name to "Mörkö" (boogeyman in Finnish). The application says "nickname invalid".
When someone mentions your name, the message should be highlighted. Could also give some sort of notification in the tab, perhaps using favico.js.
The fix is to not use the header at all - proxies that send this header should not be given a free pass. Only the remote IP of the client should be used.
I'd really appreciate if you could comment the code as I'd like to contribute coding, but with all the function floating around it confuses me.
Your app is awesome.
I think it would be nice to open a little development channel specific to github.com/AndrewBelt/hack.chat related things (ie, issues and PR's) on http://hack.chat, perhaps https://hack.chat/?development.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.