Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Recouse committed Nov 17, 2024
1 parent 74070d9 commit 8d28360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ for await event in dataTask.events() {
print("Connection was opened.")
case .error(let error):
print("Received an error:", error.localizedDescription)
case .message(let message):
print("Received a message", message.data ?? "")
case .event(let event):
print("Received an event", event.data ?? "")
case .closed:
print("Connection was closed.")
}
Expand Down

0 comments on commit 8d28360

Please sign in to comment.