ng-socket-io icon indicating copy to clipboard operation
ng-socket-io copied to clipboard

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

Open NoSoup4you2 opened this issue 5 years ago • 0 comments

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'
      }
    }
  }

NoSoup4you2 avatar Jun 29 '19 19:06 NoSoup4you2