Skip to content

Commit 014d22f

Browse files
authored
override timeout settings of ws connections
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.
1 parent 1ac77cf commit 014d22f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = function (mixinOptions) {
3030
const serviceSchema = {
3131
actions: {
3232
ws: {
33+
timeout: 0,
3334
visibility: "private",
3435
tracing: {
3536
tags: {

0 commit comments

Comments
 (0)