chatcord icon indicating copy to clipboard operation
chatcord copied to clipboard

TypeError: Cannot read property 'room' of undefined

Open simdie opened this issue 3 years ago • 2 comments

There is an issue with sudden stoppage and disappearing of chat messages during users chatting. It can only get to normal once browser is refreshed.

Here is the error code:

TypeError: Cannot read property 'room' of undefined at Socket.socket.on.msg (/home/firszmuu/beyok.firstcla.net/server.js:51:16) at Socket.emit (events.js:198:13) at /home/firszmuu/beyok.firstcla.net/node_modules/socket.io/lib/socket.js:528:12 at process._tickCallback (internal/process/next_tick.js:61:11) /home/firszmuu/beyok.firstcla.net/server.js:51 io.to(user.room).emit('message', formatMessage(user.username, msg)); ^

Kindly assist

simdie avatar Aug 10 '21 05:08 simdie

Have u got solution to this problem?

Jatan88 avatar Apr 30 '22 14:04 Jatan88

I did not get any errors, make sure you have installed everything as given in the readme file

tauseedzaman avatar May 01 '22 06:05 tauseedzaman