keep SSH connection live in nodejs
Problem
I am using simple-ssh npm module for remote connection and it is working fine with below code
var SSH = require('simple-ssh');
var ssh = new… Read More
Nodejs, clients not always receiving server messages
Problem
I am setting up a very basic node application, the plan is that anyone can go on the site and press a letter and that will incre… Read More
The concept of getting notified when the event of your choice has occurred has become popular compared to being glued onto the continuous stream of data to find that particular occurrence yo… Read More
Node callback firing at the same time
Problem
Consider this:
there can only be one callback firing at the same time
So consider this code:
var http = require("http");
function onReq… Read More
socket.io, How do i know if a socket remains active?
Problem
I'm giving my firsts steps on node and writing a simple chat app. Every time that nodejs gets a new socket connection it's saved… Read More
Technology behind real-time polling
Problem
I am looking at facebook news feed/ticker right now and I am wondering what technology/architecture it uses to pull in data asynchronously when a… Read More