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
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 ofserver.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
That was definitely the issue! Thank you so much!