Skip to content

Connection refused error after deploying socket io app to cloudflare #4565

Discussion options

You must be logged in to vote

Hi! I see you have

const socket = io.connect("http://localhost:8080/");

Shouldn't it be something like:

const socket = io.connect("<cloudflare URL>");

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@sudarshanreddyc
Comment options

@qiulang
Comment options

@darrachequesne
Comment options

@qiulang
Comment options

@qiulang
Comment options

Answer selected by darrachequesne
Comment options

You must be logged in to vote
0 replies
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