Created
July 30, 2019 06:08
-
-
Save fassko/086b70bd48d2c253c5420459d516d04e to your computer and use it in GitHub Desktop.
Opening connection
This file contains 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
let urlSession = URLSession(configuration: .default) | |
let webSocketTask = urlSession.webSocketTask(with: "wss://echo.websocket.org") | |
webSocketTask.resume() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment