Add extra header options to socket io request

This commit is contained in:
Nicola Thouliss 2020-11-22 20:19:32 +11:00
parent e98116c290
commit fdb5d8c458

View File

@ -58,7 +58,14 @@ class Session extends EventEmitter {
constructor() {
super();
this.socket = io(process.env.REACT_APP_BROKER_URL, {
transports: ["websocket"],
transports: ["polling", "websocket"],
transportOptions: {
polling: {
extraHeaders: {
"Cookie":"session-persist"
}
}
}
});
this.socket.on(