'How to pass acces_token in SocketIoConfig in angular?

I'am trying to upgrade from http calls to socket.io. I am able to make connection in local without any token being passed. But, to make it work in production,I need to pass token. How to pass the access token in ngx-socket.io SocketIoConfig?

like this: wss://.lmksoftware.io/services/websocket/ws/hello?access_token=

enter image description here

Any help will be appreciated! thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source