Questions tagged [nowjs-sockets]

NowJS, by Flotype Inc is a now deprecated which is a JavaScript server framework built on top of Node.js. For questions related to the Now CLI from ZEIT, use the [zeit-now] tag instead.

[Deprecated] NowJS creates a magic namespace "now", accessible by server and client. Functions and variables added to now are automatically synced, in real-time. Call client functions from the server and server functions from client.

http://nowjs.com/

123 questions
2
votes
1 answer

Scale SocketIO (NowJS)

I am currently using Linode to deploy my application. I have 2 servers, 1 database server with 1 Load Balancer in front. I am using Redis as the Database and NowJS to implement chat rooms. Everything works fine using Pub/Sub. Now, I want to use…
Tan Nguyen
  • 3,354
  • 3
  • 21
  • 18
2
votes
2 answers

Nodejs webserver for production

A little update to the common question. As of the current version of Nodejs v0.6.5, is it safe to run it as a webserver in production? I really wanna skip the step of using nginx for example for proxy. I am gonna use Expressjs, nowjs, gzippo. And…
georgesamper
  • 4,989
  • 5
  • 40
  • 59
2
votes
1 answer

Benchmark concurrent connections on Nodejs?

i am playing around with nodejs and would like to get some guide on how to benchmark concurrent connections on a websocket in nodejs using things like nowjs, socket.io and etc.
2
votes
1 answer

NowJS current session

I am creating node.js app using express, everyauth and now.js. I have a server-side now.js function in which I want to be able access the 'User' object for the authenticated user calling this function. I dont have access to the a 'request' or…
gonzohunter
  • 832
  • 1
  • 8
  • 18
2
votes
2 answers

How to handle a result from an hgetall() in nodejs (nowjs)?

I am using redis + nowjs. I would like to know how to go about handling a result from an hgetall()? When I try to display the "result" in the client side, I only get [object Object] (it is probably a string from the server-side js). //Redis result…
wenbert
  • 5,263
  • 8
  • 48
  • 77
2
votes
1 answer

2 node.js servers communicating using nowjs?

I saw a lot of examples of nowjs that uses a node.js server and a web client but I do not really know how to connect 2 node.js servers using nowjs. Basically, I have 2 physical machines A and B and I have one node.js server running on each. When I…
Luc
  • 16,604
  • 34
  • 121
  • 183
2
votes
1 answer

What constitute/determines Zeit serverless functions count

I recently moved a Nextjs project to Zeit platform. Until I configured environment setup I could deploy with no issue. After the environment setup which is very minimal as { "version": 2, "name": "<....>", "alias": "<...>", "routes": [ { …
Ndifreke
  • 732
  • 1
  • 8
  • 13
2
votes
1 answer

Right way to use nowjs

This is currently the way i use nowjs, but is this wrong way to use it? client: $('#guestbook_form').validate({ rules: { message: { required: true, maxlength: 1000 } }, submitHandler: function(form) { …
georgesamper
  • 4,989
  • 5
  • 40
  • 59
2
votes
2 answers

now.js not ready

I have a bit of an issue. I'm trying to create a dynamic web app using node.js/express.js/now.js. I've done everything as shown in the small sample code at http://nowjs.com/download , with no success, the client-side now.js script hosted properly,…
kataik
  • 510
  • 1
  • 5
  • 17
2
votes
1 answer

nowJS on Windows Azure

I succeeded making a small chat application with nodeJS & nowJS. It works perfect on my local machine. Now I want to host the chat app on Windows Azure. I already got a nodeJS server working on my Windows Azure account, but I keep getting the…
Lapidus
  • 925
  • 1
  • 10
  • 16
2
votes
1 answer

Cannot find module 'now' - nowjs and nodejs

I installed nodejs in my home folder (/home/myname/). No problems so far. Then I installed nowjs and there was one warning: Checking for node path: not found Now when I try this example: http://nowjs.com/doc/example I get the error: node.js:201 …
Chris
  • 4,255
  • 7
  • 42
  • 83
2
votes
1 answer

now.js : "Object has no method" error message when trying to start server.js

I installed node.js and now.js successfully. For now.js, this is how I did: npm install now -g npm install now (had to add this one. Without it, I get a "Cannot find now..." error message) When I start the node server and provide a server.js file…
Baylock
  • 1,246
  • 4
  • 25
  • 49
2
votes
3 answers

How to install now.js on Windows

I'm trying to install now.js on Windows using the node package manager but I get errors. Here's what I have: Can you tell me what's wrong with my installation? I supposed all the dependencies are already being fetched before installing now.js…
Wern Ancheta
  • 22,397
  • 38
  • 100
  • 139
2
votes
1 answer

Calling variables outside couchdb function?

I'm having alot of trouble getting couchdb's response handlers to do anything useful with node.js and now.js. My aim is to call back to a client or group with certain information that's been found and also sent from a client. everyone.now.login =…
Verbium
  • 57
  • 1
  • 5
1
vote
1 answer

nowjs group leave event called multiple times

I am using now.js groups and want to listen for when a user leaves a group so I can perform some tidying up if the group is empty. I find that the leave event is called multiple times for each time a user has been in a group, i.e. if I join a group…
henry.oswald
  • 5,304
  • 13
  • 51
  • 73
1 2
3
8 9