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

Need some Docs or Sample on how to pass additional Headers via Option #79

Open
NoSoup4you2 opened this issue Jun 29, 2019 · 0 comments
Open

Comments

@NoSoup4you2
Copy link

Hi,

was wondering if you can provide some sample of syntax on how to pass additional Headers via options in the SocketIoConfig

const config: SocketIoConfig = { url: 'https://nodejs.pub.pgtel.net', options: {} };

here is what i like to pass

transportOptions: {
    polling: {
      extraHeaders: {
        'x-clientid': 'abc'
      }
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant