Questions tagged [node.js-client]

35 questions
45
votes
2 answers

Node.js - How to send data from html to express

this is form example in html: CSS3 Contact Form

Send an email

royb
  • 693
  • 3
  • 9
  • 20
30
votes
3 answers

Windows Integrated Authentication in node.js Client

When using node.js as a client, is it possible to connect to a server using Windows integrated authentication (e.g. when connecting to IIS)? My searches for this only turn up results where node.js is used as a server.
laktak
  • 57,064
  • 17
  • 134
  • 164
19
votes
3 answers

What is the difference between local and global module in Node.js? When to use local and global module?

We can access local module using require function but cannot access global module through it. I read somewhere that to use global module we need to make it local then import it through require function. So if we cannot access global module…
Badal
  • 376
  • 4
  • 11
11
votes
2 answers

how to do Auth in node.js client

I want to get use this rest api with authentication. I'm trying including header but not getting any response. it is throwing an output which it generally throw when there is no authentication. can anyone suggest me some solutions. below is my…
Sau
  • 2,109
  • 6
  • 21
  • 22
5
votes
2 answers

Windows Azure Node JS WEBSOCKET HandShake Fails 503 Error

I've deployed my nodeJS server in windows azure. My client fails while connecting to server and handle the following error : WebSocket connection to 'wss://ooplrfrfranode.azurewebsites.net/socket.io/1/websocket/lHrd-DOydinODjbS7-tc' failed: Error…
Moussi
  • 470
  • 6
  • 16
5
votes
3 answers

pipe child process stdout & stdin to browser in node.js & browserify

I am attempting to pipe the stdout & stdin of a child_process to a browser & display it in an html page. I am using browserify to get node.js to run on the browser. My code for spawning the child_process is like this. var child =…
ssarangi
  • 602
  • 1
  • 10
  • 28
4
votes
5 answers

Why clearInterval doesn't work on a function

this is the code var t = ()=>{ setInterval(()=>{ console.log('hello') },1000) } t(); clearInterval(t) Why the clearinterval does not block execution of the setInterval?
Mark
  • 59
  • 10
2
votes
1 answer

Phoenix Channel sending messages from a client outside the project

I wanted to send a message to my user channel of my Phoenix Application. I have joined a user_token with the channel as users:user_token in the user_channel.ex . I was successful doing it from another controller called the toy_controller by calling…
2
votes
1 answer

Node socket.io client listens to events sent to the other client

I built a simple Node socket.io server, and two simple Node socket.io clients. Each client connects to the server, sends a single request, waits for the response, and prints it. The problem is, each response is printed twice, because each client…
Erel Segal-Halevi
  • 33,955
  • 36
  • 114
  • 183
1
vote
1 answer

Node.js is generally code running on the server; what role does it play in front-end project development?

Generally, when writing vue.js front-end projects, node.js is used. For example, npm installs some node.js three-party packages to node_modules/. Excuse me, node.js is generally the code running on the server side; what role does it play in…
Lance O
  • 11
  • 3
1
vote
2 answers

res.write is not returning the expected value

This is the code: var http = require('http') var options = { hostname: 'localhost', method: 'POST', port: 8000, path: '/' } var s = 3; http.request(options, (res)=>{ }).end(s+'') http.createServer((req, res)=>{ …
1
vote
2 answers

Http.request in node.js

This is my code in node js: var http = require('http'); var options = { host : '127.0.0.1', port: 8124, path: '/', method: 'GET' }; http.request(options, function(res){ console.log("Hello!"); …
Mark
  • 59
  • 10
1
vote
1 answer

I want to send a CTRL + C command to client how can I achieve this in NodeJS?

My Code Looks Like this var Client = require('ssh2').Client; var fs=require('fs'); var conn = new Client(); conn.on('ready', function() { console.log('Client :: ready'); conn.shell('xtail', function(err, stream) { …
1
vote
1 answer

How to install Node.js on Windows 10?

I tried to install Node.js on the Windows 10 64 bit using installer. When I run installe.exe I accept rules and push next button, in any case I get the following notification: When I tried to set path of downloaded install file: And get this…
Babaev
  • 105
  • 9
1
vote
1 answer

Node.js 'net' module Handling Multiple TCP clients

Respected, I use Node.js to create TCP client using 'net' module to connect with Hardware device(Which only supports TCP Protocol) which Streams data when available,so that I could listen on('data',callback) event, This is fine for Single client,But…
androidlover
  • 122
  • 1
  • 10
1
2 3