socket.io.on causes crash because io does not exist #3801
-
I'm porting my application from socket.io 2.3.0 to 3.1.1. The porting docs as well as the socket instance docs both say that some of the events I used to listen on have been moved, so Am I misunderstanding the change? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you are referring to the server Socket instance, not the client Socket instance. On the server-side, Documentation: |
Beta Was this translation helpful? Give feedback.
I think you are referring to the server Socket instance, not the client Socket instance. On the server-side,
socket.io
indeed does not exist.Documentation: