Skip to content

Socket io not working on vercel (Update: socket.io is now supported in Vercel) #4628

Closed Answered by MasterProvider
MasterProvider asked this question in Q&A
Discussion options

You must be logged in to vote

const io = new Server(res.socket.server,{ path: '/api/socket',addTrailingSlash: false });
res.socket.server.io = io;

by addTrailingSlash: false
socket.io in now working in vercel

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@MasterProvider
Comment options

@darrachequesne
Comment options

Comment options

You must be logged in to vote
2 replies
@autumn31
Comment options

@Msantanna10
Comment options

Answer selected by MasterProvider
Comment options

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

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