reconnecting-websocket icon indicating copy to clipboard operation
reconnecting-websocket copied to clipboard

Support for Dynamic Protocols

Open maxfortun opened this issue 4 years ago • 0 comments

Feature: Dynamically provide Protocols on reconnect.

Use case: Protocols is the only mechanism available to WebSocket to pass initialization information to the backend at connection time. As such, this could be leveraged for authorization. Modern authorization mechanisms, such as tokens, rotate over time and reconnecting with an old token will eventually fail. A dynamic Protocols provider can produce valid tokens at reconnect time.

maxfortun avatar Aug 06 '21 13:08 maxfortun