tegioz / chat

Simple Chat built with Node.js, Socket.io, Express & Redis (+ client built with Bootstrap)
Apache License 2.0
348 stars 179 forks source link

no user output #13

Open silentziler opened 6 years ago

silentziler commented 6 years ago

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"

Jaxan commented 6 years ago

When creating a new room, chat in that room works just fine. So it seems to be a problem with MainRoom.

Jaxan commented 6 years ago

These two lines are missing _MainRoom (see the template). That fixes the issue. Of course the better solution is to remove this html, and generate everything via the one and only template.

https://github.com/tegioz/chat/blob/master/static/index.html#L82 https://github.com/tegioz/chat/blob/master/static/index.html#L95