Skip to content

Instantly share code, notes, and snippets.

@fassko
Created July 30, 2019 08:11
Show Gist options
  • Save fassko/da316fa81d58575b31487c9325c42575 to your computer and use it in GitHub Desktop.
Save fassko/da316fa81d58575b31487c9325c42575 to your computer and use it in GitHub Desktop.
Websocket connection state with iOS 13
// 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