dkhd / node-group-chat Goto Github PK
View Code? Open in Web Editor NEWBuild A Group-Chat App in 30 Lines Using Node.js
Build A Group-Chat App in 30 Lines Using Node.js
This bug is coming up i have followed your tutorial as well but not able to figure out what is going wrong i am pasting the full log over here
SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/home/arun/Desktop/chat/node_modules/ws/index.js:3:19)
(index):21 Uncaught ReferenceError: isTyping is not defined
at HTMLInputElement.oninput ((index):21)
It works fine in my local server, but does not work if deploy it to Heroku or Google Cloud Platform.
This does not work on a server within my local home network. I can connect to my server on the 8080 port just fine, but the send button just returns the following:
Cannot POST /
I suspect that socket.io has been updated significantly since this post so the coding is wildly out of date for this project as it looks to not been maintained. I suspect this because the following script tag in index.ejs would never finds that file.
<script src="../../socket.io/socket.io.js"></script>The correct path to the js file in question is actually the following:
<script src="../node_modules/socket.io/client-dist/socket.io.js"></script>There's also a script reference to a very old jQuery implementation that I am not sure if that is causing issues also. At the end of the day, this code and the article that featured it should be taken down if it is not being maintained.
I made a fork of this project to make some modifications, but when I try to run this code on a virtual server running Ubuntu, it does not function properly. Here's a screenshot. A join message does not appear when I enter a username.
All is fine until I send a message and the web page goes blank and only shows the words "Cannot POST /" in the top right.
If I set my name as <script>alert()</script>
, it will pop up a alert. Which is a XSS issue
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.