Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-adapter-javascript
Commits
62e5f83d
Unverified
Commit
62e5f83d
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: define socket protocols and options
parent
bac93916
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
dist/adapter.esm.js
dist/adapter.esm.js
+4
-1
dist/adapter.js
dist/adapter.js
+4
-1
src/adapter/index.js
src/adapter/index.js
+4
-1
No files found.
dist/adapter.esm.js
View file @
62e5f83d
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
dist/adapter.js
View file @
62e5f83d
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
src/adapter/index.js
View file @
62e5f83d
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment