Socket.io Broadcast error: Cannot read property 'emit' of undefined #3966
Answered
by
avibhardwaj233
avibhardwaj233
asked this question in
Q&A
-
I am trying to create a chat app with Socket.io, but when using 'socket.broadcast.emit', it gives me a error. Cannot read property 'emit' of undefined. I don't know why this is happening. Any help will be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
avibhardwaj233
Jun 8, 2021
Replies: 1 comment
-
The error is now actually solved, I had some spelling mistakes in my code. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
darrachequesne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error is now actually solved, I had some spelling mistakes in my code.