From dc2f3f92b39abe66ce4dabb3660acdc0addf04f4 Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Fri, 28 Jul 2023 18:47:21 +0100 Subject: [PATCH] Doc fix --- docs/examples/advanced/websocket-server.md | 2 +- docs/examples/basic/websocket.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/advanced/websocket-server.md b/docs/examples/advanced/websocket-server.md index c72d0a311b..2534d5e9de 100644 --- a/docs/examples/advanced/websocket-server.md +++ b/docs/examples/advanced/websocket-server.md @@ -13,7 +13,7 @@ import zio.http.codec.PathCodec.string object WebSocketAdvanced extends ZIOAppDefault { - val socketApp: SocketApp[Any] = + val socketApp: WebSocketApp[Any] = Handler.webSocket { channel => channel.receiveAll { case Read(WebSocketFrame.Text("end")) => diff --git a/docs/examples/basic/websocket.md b/docs/examples/basic/websocket.md index 21f6cdae62..045f3e4f6b 100644 --- a/docs/examples/basic/websocket.md +++ b/docs/examples/basic/websocket.md @@ -12,7 +12,7 @@ import zio.http._ import zio.http.codec.PathCodec.string object WebSocketEcho extends ZIOAppDefault { - private val socketApp: SocketApp[Any] = + private val socketApp: WebSocketApp[Any] = Handler.webSocket { channel => channel.receiveAll { case Read(WebSocketFrame.Text("FOO")) =>