DEV Community

Discussion on: Websockets with React & Express [Part-1]

Collapse
 
dmikester1 profile image
Mike Dodge

Yeah, connecting to that URL works fine. I'll wait for the fifth article and compare my code to your's.

Thread Thread
 
dmikester1 profile image
Mike Dodge • Edited

Maybe you can see something wrong. This is main file that kicks off the server. dev-to-uploads.s3.amazonaws.com/i/...

Thread Thread
 
ksankar profile image
Kailash Sankar

I didn't get it at first, but after staring at it for a while I think the reason is using
app.listen(port) instead of server.listen(port);
Never realised before but found a good post about it at StackOverflow

I still have some cleaning up to do on the code, here's what I've done till now on server

Thread Thread
 
dmikester1 profile image
Mike Dodge

That was definitely the issue! Thank you so much!