Skip to content

Commit

Permalink
override timeout settings of ws connections
Browse files Browse the repository at this point in the history
It's usual use-case to apply requestTimeout globally via moleculer.config.js, yet expected default behavior for subscriptions is to live as long as it needs. If anything else is desired, developer can override this again within his api-service.
  • Loading branch information
arash16 committed Feb 14, 2021
1 parent 1ac77cf commit 014d22f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/service.js
Expand Up @@ -30,6 +30,7 @@ module.exports = function (mixinOptions) {
const serviceSchema = {
actions: {
ws: {
timeout: 0,
visibility: "private",
tracing: {
tags: {
Expand Down

0 comments on commit 014d22f

Please sign in to comment.