Skip to content

Socket.io using Redis adapter complained on server.handleUpgrade() called more than once #4584

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

You must be logged in to vote

Hi! I think that's because the HTTP server is attached twice:

Here:

const io = require('./shared/socket').init(httpServer);

And here:

io.attach(httpsServer); // I guess it's a typo and should be "httpServer" instead

Could you please check?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by yturgema1
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