Questions tagged [node-static]

a simple, rfc 2616 compliant file streaming module for node.js

node-static is a simple, rfc 2616 compliant file streaming module for node.js

24 questions
0
votes
1 answer

Page not found after installation of node static

after the installation of node-static in my windows pc with the command: npm install -g node-static When I run the static.cmd, it says to me that it listen at http://127.0.0.1:8080 but when i try this address on my browser, it response always not…
sigLosco
  • 101
  • 3
  • 5
  • 10
0
votes
2 answers

WebSocket connection to failed: Error during WebSocket handshake: Unexpected response code: 404

I' m new to WebSocket and Node.js. I'm trying to create a real-time chat as a basic program. I basically based my code here. I run my code in Amazon Linux for it to run as a real web server. I always got an error after I input the user's name. I use…
Yvanne
  • 27
  • 2
  • 8
0
votes
1 answer

Serve Angular2 application

using lite-server (Angular2 docs) my angular application runs perfectly but using node-static the manual navigation does not work. For example if I manually write localhost/404 using lite-server I can see my 404 page, but if I serve the application…
user3471528
  • 3,013
  • 6
  • 36
  • 60
0
votes
1 answer

ReferenceError:room is not defined, RTCpeerconnection not working. Clients do not connect

I am making a WebRTC video chat application and it was working before i started to add or subtract more code and in the process i deleted or changed the order in a way that now i am getting this error. Sadly i don't have a backup code and it has…
Rookie9
  • 57
  • 2
  • 8
0
votes
1 answer

Elegant way to send form data to node.js - node-static

I try to send some data to my node.js / node-static app and store it in a file. Right now i use a basic html form and capture the pathfile: Server side: var daten = url_parts.query; if (pathfile== '/get.htm'){ // get.htm just redirects…
FiesoDuck
  • 49
  • 8
0
votes
1 answer

Run NodeJS app on nodejitsu, all i get is "cannot get /"

as part of my learning i wanted to deploy my app to nodejitsu. Its running fine on my local server, but on nodejitsu all i get is Cannot GET / I thought it may have something to do with the NODE_ENV set to production on the server, but i never…
Toddy
  • 333
  • 1
  • 15
0
votes
1 answer

node-static is sending .aspx extension content as download

I'm not sure how to server .aspx files with node-static. I am using node-static to serve .html .js .css, and images (works as expected), but when I request test.aspx (a file in the public folder) it prompts the browser(s) (Chrome and FF) to download…
Nate-
  • 157
  • 1
  • 9
-1
votes
1 answer

Switch from node-static to express

I have a simple application running on node.js with websockets. This application uses the node-static module for serving some html pages with css, js and so on. The folder structure is this: -app - index.html - server.js - img/ -…
ltedone
  • 639
  • 1
  • 6
  • 12
-2
votes
1 answer

socket.io chat room is not working

I am following the tutorial given at the url: https://codelabs.developers.google.com/codelabs/webrtc-web/#6 When I run the server and open index.html on browser then it gives me error…
bee
  • 1
  • 1
1
2