Unverified Commit 62e5f83d authored by Dan Jones's avatar Dan Jones
Browse files

fix: define socket protocols and options

parent bac93916
......@@ -139,10 +139,13 @@ class Adapter {
this.getAuthorizationHeader()
.then((headers) => {
const protocols = [];
const options = { headers };
const socket = new WebSocket.Client(
this.config.socket,
protocols,
options
options,
);
socket.on('message', function(event) {
......
......@@ -141,10 +141,13 @@ class Adapter {
this.getAuthorizationHeader()
.then((headers) => {
const protocols = [];
const options = { headers };
const socket = new WebSocket.Client(
this.config.socket,
protocols,
options
options,
);
socket.on('message', function(event) {
......
......@@ -139,10 +139,13 @@ export class Adapter {
this.getAuthorizationHeader()
.then((headers) => {
const protocols = [];
const options = { headers };
const socket = new WebSocket.Client(
this.config.socket,
protocols,
options
options,
);
socket.on('message', function(event) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment