Questions tagged as 'node.js'

1
answer

Buttons with HTTP Request Action

The Button Click Request is receiving: {'QTD1LED, ON': ''}, but would like to receive only {QTD1LED, ON}. Where do I have the change in my code? var http = require("http").createServer(servidor); var express = require('express'); var io = requ...
asked by 06.09.2016 / 13:35
1
answer

Send and Receive packets in NodeJS

Well, I'll try to explain the situation: I'm studying NodeJS and for that I decided to rewrite the server-side code of an application that was originally written in C / C ++, and that server receives packets in hexadecimal from the client app...
asked by 03.09.2016 / 07:07
1
answer

Node.js sending GET command [duplicate]

Hello! I'm having trouble using the GET / Test command in this case, in which it does not return any information. Node.js Code var http = require("http").createServer(servidor); var express = require('express'); var io = require("socket...
asked by 10.09.2016 / 18:28
1
answer

How to port a Javascript web server to an executable in Windows?

I am new to Node.js, and I have developed a server using express to send files between computers on the same network, but I can only start the server on the computer that will receive the file if it has the Node installed. I would like to know i...
asked by 23.11.2016 / 21:17
1
answer

Which Form FTP Access From XPG Via Javascript

Do you have access to my free account on the hosting server XPG, through Javascript? I wonder if it's possible to just connect to Javascript with an FTP server ( ftp://ftp.xpg.com.br ), to "Send" files.    I need some way to select the loc...
asked by 28.07.2016 / 02:36
1
answer

Find in two collections using aggregation

I need to perform a find on two collections in mongodb using aggregation and put the results into a single array. I'm trying to do this, but it does not work. I have the collection Visits and Opportunities and want to summarize the amount...
asked by 16.03.2016 / 15:31
1
answer

Specific element update in a Mongoose array

How to update the following registry:   "_id": "56dd4489800f800000000000", "registro": "2014-09-07T09:06:17.214Z", "stars": 0, "observacoes": [ { "texto": "", "dataResposta": "", "idUsuario": "56dc9f9f68d7078888888...
asked by 07.03.2016 / 10:27
2
answers

Change the value of a global variable within a mongoDB function? [closed]

How can I change, for example, the value of MyVar within the collection.insert function? Thank you! ;)     
asked by 02.04.2016 / 18:42
2
answers

problem plugin camera cordova android

I'm trying to make a "Hello World" in Cordova, it's a screen with a button that activates the camera, it is not necessary to do anything else, just turn on the camera. the steps I followed. cordova create hello com.bruno.hello hello cd hel...
asked by 03.12.2015 / 01:15
1
answer

can not GET / chat socket.io

I'm trying to start the socket.io service, but the error appears Can not GET / My server.js is like this var socket = require( './node_modules/socket.io' ); var express = require('./node_modules/express'); var app = express(); var serv...
asked by 03.06.2016 / 13:28