/ Sockjs-node / info error problem

1.vue.config.js

The reason is related to the proxy server does not support ws, ws therefore need to be closed at the broker, that is ws: false

const ds_proxy = {
  '/': {
    ws: false,
    target: 'https://dev.test.gitinn.com/',
    changeOrigin: true,
  },
}

 

2.

1> Locate /node_modules/sockjs-client/dist/sockjs.js 

2> Locate the 1605 lines of code 

  the try {
   //   self.xhr.send (payload); where the note off 
  } the catch (E) { 
    self.emit ( ' Finish ' , 0 , '' ); 
    self._cleanup ( to false ); 
  }

 

Guess you like

Origin www.cnblogs.com/ckmouse/p/11942493.html