diff --git a/docs/companion.md b/docs/companion.md index 5799365a9..e8d572cf7 100644 --- a/docs/companion.md +++ b/docs/companion.md @@ -130,7 +130,8 @@ const options = { filePath: '/path/to/folder/', }; -app.use('/companion', companion.app(options)); +const { app: companionApp } = companion.app(companionOptions); +app.use(companionApp); ``` Companion uses WebSockets to communicate progress, errors, and successes to the