(config: any = {})
| 14 | // config object of the publisher, right now it only contains the redisURL, |
| 15 | // but we may extend it later. |
| 16 | constructor(config: any = {}) { |
| 17 | this.channel = config.channel || PushQueue.defaultPushChannel(); |
| 18 | this.batchSize = config.batchSize || DEFAULT_BATCH_SIZE; |
| 19 | this.parsePublisher = ParseMessageQueue.createPublisher(config); |
| 20 | } |
| 21 | |
| 22 | static defaultPushChannel() { |
| 23 | return `${Parse.applicationId}-${PUSH_CHANNEL}`; |
nothing calls this directly
no test coverage detected