subscriptions

GraphQL Subscriptions: Max Listeners Exceeded Warning

怎甘沉沦 提交于 2020-05-25 17:07:38
问题 We are using GraphQL Subscriptions and pubsub to subscribe to posts. When more than 10 subscriptions occur we get the the node warning "MaxListenersExceededWarning: Possible EventEmitter memory leak detected." Is it possible to raise the max listeners in the pubsub class? The pubsub class is inside a separate module and looks like this: import { PubSub } from 'graphql-subscriptions'; const pubsub = new PubSub(); export { pubsub }; The subscription server looks like this: import {

GraphQL Subscriptions: Max Listeners Exceeded Warning

ぐ巨炮叔叔 提交于 2020-05-25 17:06:16
问题 We are using GraphQL Subscriptions and pubsub to subscribe to posts. When more than 10 subscriptions occur we get the the node warning "MaxListenersExceededWarning: Possible EventEmitter memory leak detected." Is it possible to raise the max listeners in the pubsub class? The pubsub class is inside a separate module and looks like this: import { PubSub } from 'graphql-subscriptions'; const pubsub = new PubSub(); export { pubsub }; The subscription server looks like this: import {

Overlapping Meteor publications

↘锁芯ラ 提交于 2020-01-20 08:43:50
问题 I have a meteor app which has 2 publications for posts. One for all posts and one for featured posts. There are 2 featured posts - "Post 1" and "Post 4". I show featured posts on all pages, while i paginate all posts (including the featured posts) sorted by name. When i travel between pages, the data from the 2 publications get mixed up and show incorrect results. Here is the code: Meteor.publish('posts', function(page) { const skip = parseInt(page && page !== '' ? page : 0) * 3 return Posts

XMPP ( with smack) - Adding Friend

不想你离开。 提交于 2020-01-03 03:31:25
问题 In my chat application when I have to add a friend I have to follow this process - Suppose A->B ist : A will send subscribe packet to B ( server entry shows NONE subscription ) iind - B will send subscribed packet to A ( server entry will be - TO/FROM) iiird - B will again send subscribe packet to A ( server entry TO/FROM ) ivth - A will send subscribed packet to B ( server entry BOTH ) Each time a notification is sent to the concerned user and after allowing corresponding packet is sent. I

unable to save or cancel subscriptions using Stripe

↘锁芯ラ 提交于 2020-01-01 10:02:26
问题 Using stripe's API with Ruby on Rails I am unable to save subscriptions. I am able to retrieve and update and save customer objects: customer = Stripe::Customer.retrieve(some_customer_id) #this works customer.save #this works I am also able to retrieve subscriptions: subscription=customer.subscriptions.retrieve("some_subscription_id") #this works However, when trying to save a subscription: subscription.save #this doesn't work I keep getting this: NoMethodError: undefined method `save' for #

unable to save or cancel subscriptions using Stripe

谁说我不能喝 提交于 2020-01-01 10:01:36
问题 Using stripe's API with Ruby on Rails I am unable to save subscriptions. I am able to retrieve and update and save customer objects: customer = Stripe::Customer.retrieve(some_customer_id) #this works customer.save #this works I am also able to retrieve subscriptions: subscription=customer.subscriptions.retrieve("some_subscription_id") #this works However, when trying to save a subscription: subscription.save #this doesn't work I keep getting this: NoMethodError: undefined method `save' for #

Overriding specific third party Woocommerce plugin templates

落花浮王杯 提交于 2019-12-31 03:18:06
问题 I'm using a Woocommerce based plugin called Mix 'n Match Products. This plugin sits inside /plugins/woocommerce-mix-and-match-products/ This folder contains another folder for templates. Following convention, I have copied the " templates " folder into my child theme and changed the folder name to " woocommerce-mix-and-match-products " The structure is now themes/storevilla-child/woocommerce-mix-and-match-products/ However, none of the templates override the plugin templates. I have tested.

In app purchases and trial runs?

喜夏-厌秋 提交于 2019-12-30 10:44:20
问题 I am building an app for a client that will have 30 days of content for free, thereafter you are required to buy a subscription via in app store purchases. However, I have read that you will get rejected if you have trials. Don’t set time limits on any of the functionality of your app, either for run times or life times. Applications that only run for a set number of minutes per session, or that expire altogether after some period of time, don’t recruit customers so much as leave a bad taste

GraphQL-subscriptions: How to get published object in subscription resolver

↘锁芯ラ 提交于 2019-12-25 09:01:20
问题 I am using an express server with GraphQL subscriptions and subscriptions-transport-ws. I have set up the subscription with a given channel: ... const subscriptionManager = new SubscriptionManager({ schema: executableSchema, pubsub: pubsub, setupFunctions: { testRunChanged: (options, args) => { return { testRunChangedChannel: { filter: (testRun) => { return testRun.id === args.testRunId; } }, }; }, }, }); ... After a mutation is received a process is started on the server where the database

What's the Technique for Building Domain Packages in AMember?

时光怂恿深爱的人放手 提交于 2019-12-25 00:41:32
问题 I want to use AMember to have people purchase WordPress plugins and themes. However, I want to sell different prices for single domain vs. letting them install like 5-domain packs (and multiples of those). One would go through the AMember workflow to purchase something, and then receive a serial number based on their purchase. They activate the theme or plugin and then put in this serial number in an options panel, and they're off and running with a functioning plugin or theme. What is the