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")) =>