5
votes
1answer
914 views

node.js / socket.io, cookies only working locally

I'm trying to use cookie based sessions, however it'll only work on the local machine, not over the network. If I remove the session related stuff, it will however work just great over the network... ...
2
votes
1answer
130 views

Set and Clear Timeout on Node Server from Client

I'm attempting to allow a user to set an alarm from the client and pass it to the server. The server then has a setTimeout that counts down and when time runs out, executes the function. This first ...
1
vote
0answers
191 views

Using Redis to Keep Track of Page Views from Incoming Traffic

I'm trying to use Redis to keep track of page views so I can figure out which pages get the most views from incoming traffic (rather than from browsing within the site). However, right now when I ...
0
votes
0answers
46 views

Get socket from redis in nodejs and socket.io?

The use case is this: Socket.io with nodejs cluster. Client would be connected to server with socket.io. Server would also be listening for some http get request and then reply to the client's ...
0
votes
0answers
65 views

Socket io connects to multiple sockets on reconnect

I have one application where I have implemented notification using using Node js , socket io and redis. There I have successfully configured publisher and subscriber in node js. Using socket io I can ...
0
votes
0answers
44 views

Most efficient way to store and retrieve sockets in Node.js

Currently I am storing the actual socket object in an array in each process. I then store socket data in redis for all processes (workers) to access. Is there a more performance/efficient way to ...
0
votes
0answers
85 views

What is the best way to show online followers, node.js/socket.io and Redis

My app is built in PHP (served on nginx/php-fpm) and I use node/js with socket.io for users push notifications. These are pushed using Redis pub/sub to interlink between PHP and node.js The node.js ...
0
votes
0answers
63 views

Express + Passport + RedisStore session data not always updated

I have a Node.js app. I am using Express + Passport for Authentication. I am using a Redis Store for the session. I want to upload files, then write the name of the file to the session. Here is my ...
0
votes
0answers
24 views

JS redis sync of data

Scenario is - I have a sorted set in redis as "leaderboard" "token1"->100 "token2"->90 "token3"->80 I have another key value stored in redis as "token1"->"Details of user 1" "token2"->"Details ...
0
votes
0answers
19 views

Loading mongoosejs models from other data stores

I'm working on a project in Node.js with mongoDB and mongoose for the data layer. I was hoping to use Redis to cache the ID lookups so that mongo is free to work on the harder things. Specifically ...
0
votes
0answers
88 views

NodeJS + Redis + HTTP Get

I'm currently getting data from my database by the way of PHP using Nodejs. The problem is that the script that I want to execute after grabbing datas is actually executing directly after the instance ...
0
votes
0answers
128 views

Save an array of objects to Redis (Laravel)

im not sure this is possible but i want to save an array of objects into redis through laravel. The array looks like this: var arrayl = { 1: {url:google.com, score:1}, 2: {url:bing.com, score: ...
0
votes
0answers
431 views

Express + Passport + Redis sessions?

To date I have been using the default MemoryStore for my Express sessions. Everything has been working great, except that all session data is lost between restarts. So I am trying to get my sessions ...
0
votes
0answers
130 views

Moving Redis Hash Fields Efficiently

I am trying to remove and move multiple values from one Redis hash to another Redis hash in Node.js. Basically I have two hashes set up: Current and History. When I receive information that ...
0
votes
0answers
95 views

how to store the values in server using redis db and retrieve the same in client?

Hi am using Redis Database for my application, i wanna send some values from client to server-side and have to retrieve the same from server to another client side, i can use set & get in ...

1 2
15 30 50 per page