-
Notifications
You must be signed in to change notification settings - Fork 352
Closed
Description
It appears that those lines
engine.io-client/lib/socket.js
Lines 99 to 103 in 1519765
| var freeGlobal = typeof global === 'object' && global; | |
| if (freeGlobal.global === freeGlobal) { | |
| if (opts.extraHeaders && Object.keys(opts.extraHeaders).length > 0) { | |
| this.extraHeaders = opts.extraHeaders; | |
| } |
The way to use extraHeaders in Node is:
{
extraHeaders: { foo: 'bar' }
}
The way to use extraHeaders in Browser is (#536 (comment)):
{
transportOptions: {
polling: {
extraHeaders: { 'foo': 'bar' }
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels