SAPWebSocketAuthenticationObserver

public class SAPWebSocketAuthenticationObserver
extension SAPWebSocketAuthenticationObserver: SAPURLSessionObserving

An observer that handles unauthorized WebSocket requests.

SAPWebSocketAuthenticationObserver monitors WebSocket requests and responses. When an unauthorized request is detected, the observer uses the provided SAPWebSocketAuthenticationHandling implementation to obtain a valid OAuth 2.0 access token and enables reauthorization of the webSocket connection.