igorantun / node-chat Goto Github PK
View Code? Open in Web Editor NEW:speech_balloon: Chat application built with NodeJS and Material Design
License: MIT License
:speech_balloon: Chat application built with NodeJS and Material Design
License: MIT License
Move all of the configuration of the server to a single file (config.json)
I would suggest moving the following settings there:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:140:10)
at weakhash (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/etag/index.js:163:6)
at etag (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/etag/index.js:59:7)
at wetag (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/express/lib/utils.js:54:10)
at ServerResponse.send (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/express/lib/response.js:174:17)
at fn (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/express/lib/response.js:934:10)
at exports.renderFile [as engine] (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/ejs/lib/ejs.js:355:10)
at View.render (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/express/lib/view.js:93:8)
at app.render (/Users/mac/Documents/sites/anushaFork/node-chat/node_modules/express/lib/application.js:566:10)
Is it possible to get a command that could list all users on the client? /users or something?
Hey guys, do u have a new update or is abandoned ??
This looks like it has a lot of potential but no action for 2 years.
Is this alive and kicking? Would love to see a chat system with many features and also include webcams!
If you'd please consider the addition of refined images in the message field instead of a link to them, I'd be greatly appreciated. I'm very thankful for your consideration.
Have a good day sir
It work on local computer but not on my VPS
How and where do I add myself admin How to connect to the chat admin please help please I would be glad if you could put as much visual Thank you very much in advance
When I try to use proxypass by apache, I can't connect, and it works live.
Do you know why?
What do you think of changing the dataset to Mongo?
I could work in a port.
[Deleted]
Make different tabs for pepole to talk to each other. Leave the style like it is just a tab thing.
| Main | SwagGirl | Main |
Make @mentions autocomplete available usernames.
Example: I type Swa and it gives me options like Swaggirl12133 and Swagguy12133 to choose from.
Project is AMAZING! do you plan to develop an application capable of storing messages?
Hi! It's me again.
After I spent some more time with the chat, I noticed that the "blop" sound wouldn't play on Firefox.
After some digging, I found that Firefox can't reproduce WAV files encoded with more than 16 bits, so I re-encoded the blop.wav
file to 16 bits, and it now works properly.
Another issue I found with the sound is that the chat.js
file wasn't properly loaded by Firefox, because the speechToText
variable is only defined on Chrome, so I added a definition check for that and everything is running nicely! Again, I'm about to add a pull request to this issue so you can check it and merge.
Cheers!
Hello,
My English Little bad. Sorry.
I want to make separate links
sample:
samplenodechat.com:8777/roam1
samplenodechat.com:8777/roam2
it does not have to be visible on the link
How can I make it easiest?
Thank you.
Hi there,
this is not an issue with the chat but with a custom way to integrate this for my userbase. I have connected the chat to mysql to check for a valid username but I am having trouble to actually launch the chat when providing the user details.
Here is my solution so far:
I added:
app.get("/:username/:id?", (req, res) => {
console.log(escape(req.params.username));
console.log(escape(req.params.id));
});
to pass the username and a key to verify a valid user. The console returns the username and id correctly. Now my problem is that I want to auto connect the user to the chat with the given details. So I basically want to remove the option so the user has to enter a username and use my urll provided username to connect him.
Your help would be greatly appreciated. I am more than willng to donate a few bucks to get this working.
My actual code modification is:
app.get("/:username/:id?", (req, res) => {
con.query(
"SELECT * FROM users WHERE username = " +
con.escape(req.params.username) +
" AND token = "+
con.escape(req.params.id),
function (err, result, fields) {
reslen = result.length;
if (reslen == 0){
if (err) throw err;
console.log("Invalid user");
} else {
console.log("Valid user");
// this is the place where I need to connect the username to the chat
}
}
);
});
The mysql connection etc is working fine. It shows in the console if the details were correct or not. I just need a way to actually connect the user to the room with his username. Right now its just stuck loading nothing :)
Add moderation ranks like Administrator, Moderator, Trial-Mod, Special, Coder, Designer, etc...
While testing the chat (pretty awesome, by the way) with PM2, I had an error with the /views
folder not loading correctly, because I was calling the app.js file from a different location than the repo folder.
I fix'd it and I'm now about to create a pull request for this.
Make a system where you can send files to other users via private messages.
Hi
I try this CHAT, it is very good with HTTP
I try SSL, but it doesn´t work, i changed in config.json:
Before:
"ssl": {
"use": true,
"key": "/certificate.key",
"cert": "/certificate.crt"
After:
"ssl": {
"enabled": true,
"key": "/certificate.key",
"cert": "/certificate.crt"
It start the CHAT but in Google Chrome, it function with HTTP, not HTTPS
Can you give me one answer for SSL?
Thanks.
Names can be just about anything aside from straight up spaces. Needs at least some restriction.
Please Help I can't use the glitch console to edit my roles is there any other way i can edit my roles without needing to use the console like making a json file or, some type of db file that stores the data or something please help.
Hi! Is this project copyright-free?
-Scratchnerd
Chat works great as HTTP, but when I change the config to:
{
"log": true,
"port": 3000,
"url": "/",
"ssl": {
"use": true,
"key": '/privkey.key',
"cert": "/cert.pem"
},
"readline": {
"use": true,
"prompt": "[--:--:--][CONSOLE] "
}
}
I get the following error:
[--:--:--][CONSOLE] fs.js:584
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
TypeError: path must be a string
at TypeError (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at Object. (/home/user/Documents/node-chat/app.js:369:18)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:146:18)
any ideas on how to fix this?
Thanks in advance for the support!
when i type /role username 3 it says not allowed how do i go admin bra like proper
It's a real shame that the administrator does not work, the application is beautifully designed,i know this is not easy to make but its a shame.
thanks!
Show when someone is typing something. Make it say "Igor is typing" like in Skype, etc.
nodemon não funciona, não inicia automático
Could you add suport for uploading images, if storage is a problem, you can write a script that deletes images every seconds or so.
👍
Could the documentation on the main page (and the documentation available using /help) contain an example of an admin account deleting a user message?
The users box at the top does not work...
thanks
Show the IP to administrators upon user connection or disconnect.
Example:
Users:
System IgorAntun connected to the server.
Administrators:
System IgorAntun (8.8.8.8) connected to the server.
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.