i cant set extraheaders
fakirpic opened this issue · 1 comments
fakirpic commented
i am trying to use https://github.com/socketio/engine.io-client this client in nw-js app,
but i cant set extraheaders etc. it thinks its a browser not a nodejs app
darrachequesne commented
I added an example in the README here:
require('engine.io-client')('http://localhost', {
transports: ['polling', 'websocket'],
transportOptions: {
polling: {
extraHeaders: {
'X-Custom-Header-For-My-Project': 'hey!'
}
}
}
});