You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup the librairy to call my server, the trick is that the token I need will be in the url of the web-app, so I can't set it up when bootstraping, I need to wait until everything is initialized.
So in my service I have : const sockConfig: SocketIoConfig = { url: http://${config.url}:${config.port}, options: { query: { mock: true }, path: /token/${token}, withCredentials: false, autoConnect: false } } console.log(sockConfig.url) this.socket = new Socket(sockConfig); console.log(this.socket); this.socket.connect();
Good Morning,
I'm trying to setup the librairy to call my server, the trick is that the token I need will be in the url of the web-app, so I can't set it up when bootstraping, I need to wait until everything is initialized.
So in my service I have :
const sockConfig: SocketIoConfig = { url:
http://${config.url}:${config.port}, options: { query: { mock: true }, path:
/token/${token}, withCredentials: false, autoConnect: false } } console.log(sockConfig.url) this.socket = new Socket(sockConfig); console.log(this.socket); this.socket.connect();
And in the browser the url called became http://localhost:4200/token/XXXX-XXXX-XXXX-XXXX-XXX/?mock=true. My issue is the / between the token part and the parameters that comes from nowhere.
Any idea ? Is that a feature ?
The text was updated successfully, but these errors were encountered: