Created
July 30, 2019 08:11
-
-
Save fassko/da316fa81d58575b31487c9325c42575 to your computer and use it in GitHub Desktop.
Websocket connection state with iOS 13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// connection disconnected | |
func urlSession(URLSession, webSocketTask: URLSessionWebSocketTask, | |
didCloseWith: URLSessionWebSocketTask.CloseCode, | |
reason: Data?) | |
// connection established | |
func urlSession(URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol: String?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment