firebase-queue

My Firebase Queue doesn't do anything after I changed to Firebase 3

妖精的绣舞 提交于 2020-01-02 18:56:22
问题 I started using Firebase a couple of weeks ago, and had Firebase Queue running on my node.js server code. Clients could push messages to queue/tasks, and the server would resolve them. I cannot replicate this after Firebase has changed to version 3, even though Firebase Queue has been updated and no-one else seems to be having problems. It is probably just a minor bug in my code, but I haven't found it after a couple of days, and I would appreciate it if someone could point it out for me.

How push a task with SpecId in firebase-queue with nodejs?

非 Y 不嫁゛ 提交于 2020-01-01 19:41:05
问题 In the document example we can see : var Queue = require('firebase-queue'), Firebase = require('firebase'); var ref = new Firebase('https://<your-firebase>.firebaseio.com'); var queueRef = ref.child('queue'); var messagesRef = ref.child('messages'); var options = { 'specId': 'new_user' }; new Queue(queueRef, options, function(data, progress, resolve, reject) { // sanitize input message console.log(data.message); // pass sanitized message and username along to be fanned out resolve(data); });

How to safely allow user to delete responses from Firebase-queue?

蓝咒 提交于 2019-12-12 02:44:39
问题 I'm using Firebase with Angular2 and Firebase-queue as a batch server. Clients send tasks to the server and sometime they are waiting for a response. Client can read the response using the request id. But then, what happens to the response ? I guess only the client can delete it but I don't really like to give .write to the client. So I'm trying to figure out a way to secure this .write access. Question: Is It possible to give .read and .write access only to the user that own the request key?

My Firebase Queue doesn't do anything after I changed to Firebase 3

和自甴很熟 提交于 2019-12-06 04:48:45
I started using Firebase a couple of weeks ago, and had Firebase Queue running on my node.js server code. Clients could push messages to queue/tasks, and the server would resolve them. I cannot replicate this after Firebase has changed to version 3, even though Firebase Queue has been updated and no-one else seems to be having problems. It is probably just a minor bug in my code, but I haven't found it after a couple of days, and I would appreciate it if someone could point it out for me. Here I have my server code. It should print to the console whenever a task is added to the queue, but it

How push a task with SpecId in firebase-queue with nodejs?

自作多情 提交于 2019-12-04 19:04:17
In the document example we can see : var Queue = require('firebase-queue'), Firebase = require('firebase'); var ref = new Firebase('https://<your-firebase>.firebaseio.com'); var queueRef = ref.child('queue'); var messagesRef = ref.child('messages'); var options = { 'specId': 'new_user' }; new Queue(queueRef, options, function(data, progress, resolve, reject) { // sanitize input message console.log(data.message); // pass sanitized message and username along to be fanned out resolve(data); }); How save a new task with the specId new_user or other custom specId var task = {'userId': "0338ba4d

Return task results using firebase-queue

ぐ巨炮叔叔 提交于 2019-12-01 09:24:50
I am working on a mobile application using Firebase. In the mobile app, I need to register a user based on his/her mobile number similar to Whatsapp. I intend to use Nexmo to verify user's mobile number. There are two steps involved in verifying the number. Send the the user mobile number to the Nexmo API and it returns back with a request_id on success and it also sends a code to user's mobile via SMS Send the code and the request_id to the Nexmo to verify the number I want to use firebase-queue to execute these tasks. I want to ask if there is a way to return results for a task back to the

Return task results using firebase-queue

流过昼夜 提交于 2019-12-01 06:02:11
问题 I am working on a mobile application using Firebase. In the mobile app, I need to register a user based on his/her mobile number similar to Whatsapp. I intend to use Nexmo to verify user's mobile number. There are two steps involved in verifying the number. Send the the user mobile number to the Nexmo API and it returns back with a request_id on success and it also sends a code to user's mobile via SMS Send the code and the request_id to the Nexmo to verify the number I want to use firebase