Skip to content

socket.io.on causes crash because io does not exist #3801

Answered by darrachequesne
gperrow asked this question in Q&A
Discussion options

You must be logged in to vote

But in my 'connection' handler function

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:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gperrow
Comment options

Answer selected by gperrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants