tegioz / chat Goto Github PK
View Code? Open in Web Editor NEWSimple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
License: Apache License 2.0
Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
License: Apache License 2.0
I can't seem to find the license. Would you add one, please? See http://choosealicense.com/ for more information.
hi how do you broadcast messages to all users?
Broadcast API
Send messages to all connected users:
Content-Type: application/json
POST /api/broadcast/
{"msg": "Hello!"}
Can you tell me how to execute this command?
When the first new room is created, addMessage(info) function does not seem to append that the user joined the room. It works fine for MainRoom and next rooms created.
The Message area scrolls automatically to the "middle" when there are a lot of messages. So new messages dissapear in the bottom and are only readable when the user scrolls back down.
But, when another message appears, the text area scrolls up again.
have panel admin ?
Not sure if this is a global issue or just me.
I have redis and chatserver.js running.
On the webpage I can type text in the input box, however it is not showing up in the chat.
The serverBot welcomes me.
However, does not state I joined the room.
Update:
With debug enabled in main.js I am able to send messages to the "sampleroom".
Also it says anonymous -- joined the room--
Still no output in "MainRoom"
sorry, I can not write correct English。
firstly, i created 'test ' room , and the index of simpleChat display a 'test' room.yes, i know Source Code del with room = room.replace(" ","");
.
The question is now, i try send like 'xxxx' msg, console print a newMessage record , but pages display none.
meet this error TypeError: Object # has no method 'clients'
can fix it by change
var socketsInRoom = io.sockets.clients(data.room);
to
socket.join(data.room);
var socketsInRoom = io.sockets.adapter.rooms[data.room];
Hi, i've been trying to launch redis-server, just like what is described on"README", but this command isn't working or not being recognized on my terminal. What can i do to make it right?
Best regards
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.