Relative Content

Tag Archive for angularngxs

Set protocol asynchronously in NGXS WebSocket Plugin

I’m trying to set the protocol for a WebSocket configuration, but I want to do this after receiving an access token from an API. Specifically, I want to pass the token as a header in the Sec-WebSocket-Protocol. However, I haven’t been able to set the protocol in any way except by putting it in NgxsWebsocketPluginModule.forRoot().