You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'appName':'Name of your application that will be used in the redis queue',
47
+
'redisUrl':'Url of the redis server. If it is not set, it will use localhost on the default port'
46
48
};
47
49
48
50
var hydrationServer =anyfetchHydrater.createServer(config);
@@ -61,14 +63,13 @@ POST <your_hydrater_server_url>/hydrate
61
63
}
62
64
```
63
65
64
-
> In some cases, you may want to bypass the lib and send the result yourself. The property `cb.callbackUrl` tells you where to send the data back to the client. After having sent the data, call `cb()`*without any error or document*. This will finalize hydration, clean the file and start the next task.
66
+
> In some cases, you may want to bypass the lib and send the result yourself. The property `cb.callbackUrl` tells you where to send the data back to the client. After having sent the data, call `cb(null, null)`*without any error or document*. This will finalize hydration, clean the file and start the next task.
65
67
66
68
### Optional parameters
67
69
`createServer()` takes an object hash for argument. `hydrater_function` is mandatory, optional values includes:
68
70
69
-
*`concurrency`: max number of simultaneous calls to your hydrater function (default: 1)
70
-
*`logger`: function to use for logging. It will get called with strings when a task is started or ended, default to `console.log`.
71
-
*`errLogger`: function to use for logging errors, default to `console.warn`.
71
+
*`concurrency`: max number of simultaneous calls to your hydrater function (default: 1).
72
+
*`opbeat`: an object usef for opbeat notifications. It must have `organizationId`, `appId`, `secretToken` keys.
0 commit comments