Package apple.foundation.protocol
Interface NSURLSessionWebSocketDelegate
-
- All Superinterfaces:
NSURLSessionDelegate,NSURLSessionTaskDelegate
public interface NSURLSessionWebSocketDelegate extends NSURLSessionTaskDelegate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSURLSessionDelegate
NSURLSessionDelegate.Block_URLSessionDidReceiveChallengeCompletionHandler
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSURLSessionTaskDelegate
NSURLSessionTaskDelegate.Block_URLSessionTaskDidReceiveChallengeCompletionHandler, NSURLSessionTaskDelegate.Block_URLSessionTaskNeedNewBodyStream, NSURLSessionTaskDelegate.Block_URLSessionTaskWillBeginDelayedRequestCompletionHandler, NSURLSessionTaskDelegate.Block_URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidURLSessionWebSocketTaskDidCloseWithCodeReason(NSURLSession session, NSURLSessionWebSocketTask webSocketTask, long closeCode, NSData reason)Indicates that the WebSocket has received a close frame from the server endpoint.default voidURLSessionWebSocketTaskDidOpenWithProtocol(NSURLSession session, NSURLSessionWebSocketTask webSocketTask, java.lang.String protocol)Indicates that the WebSocket handshake was successful and the connection has been upgraded to webSockets.-
Methods inherited from interface apple.foundation.protocol.NSURLSessionDelegate
URLSessionDidBecomeInvalidWithError, URLSessionDidFinishEventsForBackgroundURLSession, URLSessionDidReceiveChallengeCompletionHandler
-
Methods inherited from interface apple.foundation.protocol.NSURLSessionTaskDelegate
URLSessionTaskDidCompleteWithError, URLSessionTaskDidFinishCollectingMetrics, URLSessionTaskDidReceiveChallengeCompletionHandler, URLSessionTaskDidSendBodyDataTotalBytesSentTotalBytesExpectedToSend, URLSessionTaskIsWaitingForConnectivity, URLSessionTaskNeedNewBodyStream, URLSessionTaskWillBeginDelayedRequestCompletionHandler, URLSessionTaskWillPerformHTTPRedirectionNewRequestCompletionHandler
-
-
-
-
Method Detail
-
URLSessionWebSocketTaskDidCloseWithCodeReason
default void URLSessionWebSocketTaskDidCloseWithCodeReason(NSURLSession session, NSURLSessionWebSocketTask webSocketTask, long closeCode, NSData reason)
Indicates that the WebSocket has received a close frame from the server endpoint. The close code and the close reason may be provided by the delegate if the server elects to send this information in the close frame
-
URLSessionWebSocketTaskDidOpenWithProtocol
default void URLSessionWebSocketTaskDidOpenWithProtocol(NSURLSession session, NSURLSessionWebSocketTask webSocketTask, java.lang.String protocol)
Indicates that the WebSocket handshake was successful and the connection has been upgraded to webSockets. It will also provide the protocol that is picked in the handshake. If the handshake fails, this delegate will not be invoked.
-
-