This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 1d484d3
1 parent 31b33f3 commit 1d484d3 Copy full SHA for 1d484d3
File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -71,23 +71,17 @@ export default function listenForProgress() {
71
71
72
72
try {
73
73
console . log ( `-- Attempting connection to ${ socketType } ://${ wsBaseUrl } ${ wsProgressUrl } ` )
74
+ document . cookie = 'X-Authorization-Token=' + AccessToken . get ( ) + '; path=/' ;
74
75
socket = new WebSocket ( `${ socketType } ://${ wsBaseUrl } ${ wsProgressUrl } ` )
75
76
} catch ( e ) {
76
77
console . log ( `--- Connection to ${ socketType } ://${ wsBaseUrl } ${ wsProgressUrl } failed!` )
77
78
error ( e )
78
79
console . log ( '---' )
79
80
}
80
81
81
- socket . onopen = ( event ) => {
82
+ socket . onopen = ( ) => {
82
83
console . log ( '-- Socket open! Sending Bearer token and then listening for Progress...' )
83
84
dispatch ( requestProcessingProgress ( ) )
84
- socket . send (
85
- JSON . stringify ( {
86
- headers : {
87
- Authorization : 'Bearer ' + AccessToken . get ( ) ,
88
- } ,
89
- } )
90
- )
91
85
92
86
// Keep connection alive by pinging server every 60s
93
87
keepSocketAlive = setInterval ( ( ) => {
You can’t perform that action at this time.
0 commit comments