Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Companion socket options? #3306

Closed
petrbela opened this issue Nov 7, 2021 · 3 comments
Closed

Companion socket options? #3306

petrbela opened this issue Nov 7, 2021 · 3 comments
Labels
Companion The auth server (for Instagram, GDrive, etc) and upload proxy (for S3) 📖 Docs

Comments

@petrbela
Copy link

petrbela commented Nov 7, 2021

In companion's readme/docs, it says in order to enable progress updates, we should call companion.socket(server, options). After upgrading @uppy/companion to v3, the options argument is no longer accepted. What's the correct way to do this?

@Murderlon
Copy link
Member

Hi, this seems to be incorrect in the docs. The options should be passed to the companion instance instead and socket doesn't take options.

import companion from '@uppy/companion'
import express from 'express'

const app = express()
app.use('/companion', companion.app({ /* options */ }))

cc @mifi

@Murderlon Murderlon added Companion The auth server (for Instagram, GDrive, etc) and upload proxy (for S3) 📖 Docs and removed Bug Triage labels Nov 8, 2021
@mifi
Copy link
Contributor

mifi commented Nov 9, 2021

I think the socket function has never accepted an options arguemnt:

module.exports = (server) => {

The correct way should just be companion.socket(server), and if you need to send any options for companion, then do like @Murderlon suggested

mifi added a commit that referenced this issue Nov 9, 2021
It was never an option. See #3306
mifi added a commit that referenced this issue Nov 9, 2021
…et` (#3307)

remove socket options

from docs and examples. It was never an option. See #3306
@Murderlon
Copy link
Member

Closed in #3307

HeavenFox pushed a commit to docsend/uppy that referenced this issue Jun 27, 2023
…et` (transloadit#3307)

remove socket options

from docs and examples. It was never an option. See transloadit#3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Companion The auth server (for Instagram, GDrive, etc) and upload proxy (for S3) 📖 Docs
Projects
None yet
Development

No branches or pull requests

3 participants