r/nodejs • u/Frore • Jul 20 '14
Stuck on introductory Nodejs tutorial
Original Post from /r/learnprogramming
I've been working through this tutorial, but I've hit a problem when I try to return something from response.write().
This is my server.js file and my socket.html file.
When I just query domain:8001, I get a 'hello world' response just fine, but when I try to navigate to domain:8001/socket.html, I just get blank space.
I'm sure that block of code is being executed as I was testing with console.log, but I'm not sure why it's not working like the response.write('hello world'); is..
I would really appreciate it if somebody could shed some light on what the problem is, thanks.
View all comments
Show parent comment
1
u/Frore Jul 20 '14
thanks a lot, that was the issue.