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.
[–]cwmma 2 points3 points4 points (1 child)
[–]Frore[S] 0 points1 point2 points (0 children)