Skip to content

Commit

Permalink
Comment tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Mar 19, 2022
1 parent 1167d22 commit 147346e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/http4s/dom/WebSocketClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ object WebSocketClient {
.flatMap(close.complete(_)) *> messages.offer(None)

F.delay(ws.readyState).flatMap {
case 0 | 1 => shutdown // CONNECTING / OPEN
case 0 | 1 => shutdown // CONNECTING | OPEN
case 2 => close.get.void // CLOSING
case 3 => F.unit // CLOSED
case s => F.raiseError(new IllegalStateException(s"WebSocket.readyState: $s"))
Expand Down

0 comments on commit 147346e

Please sign in to comment.