Created
July 30, 2019 06:09
-
-
Save fassko/975caa71b6ff807cb141395ad88fab46 to your computer and use it in GitHub Desktop.
Sending messages with Websocket iOS 13
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 message = URLSessionWebSocketTask.Message.string("Hello World”) | |
webSocketTask.send(message) { error in | |
if let error = error { | |
print("WebSocket couldn’t send message because: \(error)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment