response.send(msg)
is equal to response.write(msg);response.end();
Which means, send
can only be called once, write
can be called many times, but you must call end
yourself.
More Related Contents:
- Displaying Javascript variables in HTML
- Updating a Nested Array with MongoDB
- Is it not possible to stringify an Error using JSON.stringify?
- Issue in returning data retrieved from DB queries called in the loop
- Preventing SQL injection in Node.js
- setImmediate vs. nextTick
- Where do the parameters in a javascript callback function come from?
- How to get a URL parameter in Express?
- Failed to load c++ bson extension
- How to write asynchronous functions for Node.js
- Nodejs express and promises not doing what I expect
- understanding the concept of javascript callbacks with node.js, especially in loops
- What does “./bin/www” do in Express 4.x?
- Node.js Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0
- Export HTML table to CSV using vanilla javascript
- Undefined return value from the function call Javascritpt
- XMLHttpRequest cannot load No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:3000’ Google maps
- Updating an activity in BotFramework v4 on Teams platform
- Require is not defined after installed nodejs
- What does `node –harmony` do?
- Nodejs: get filename of caller function
- Typescript compiler error when importing json file
- require(‘babel/register’) doesn’t work
- Whats the smartest / cleanest way to iterate async over arrays (or objs)?
- JavaScript dependency management: npm vs. bower vs. volo [closed]
- How do I install the babel-polyfill library?
- ES6 import from root
- How to create a sleep/delay in nodejs that is Blocking?
- using await on global scope without async keyword
- Cannot connect to MongoDB because of wrong URI