Skip to content

Commit

Permalink
fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
khajavi committed Jan 6, 2025
1 parent 20beeb3 commit b99bd48
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package example.websocket
import scala.annotation.nowarn

import zio._

import zio.http.ChannelEvent.Read
import zio.http._

import scala.annotation.nowarn

object WebSocketSimpleClient extends ZIOAppDefault {
object WebSocketSimpleClientAdvanced extends ZIOAppDefault {

def sendChatMessage(message: String): ZIO[Queue[String], Throwable, Unit] =
ZIO.serviceWithZIO[Queue[String]](_.offer(message).unit)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package example.websocket

import zio._

import zio.http.ChannelEvent.Read
import zio.http._
import zio.http.codec.PathCodec.string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package example.websocket

import zio._

import zio.http.ChannelEvent.{ExceptionCaught, Read, UserEvent, UserEventTriggered}
import zio.http._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package example.websocket

import scala.annotation.nowarn

import zio._

import zio.http.ChannelEvent.{ExceptionCaught, Read, UserEvent, UserEventTriggered}
import zio.http._
import zio.http.codec.PathCodec.string

import scala.annotation.nowarn

object WebSocketServerAdvanced extends ZIOAppDefault {

val socketApp: WebSocketApp[Any] =
Expand Down Expand Up @@ -59,4 +60,3 @@ object WebSocketServerAdvanced extends ZIOAppDefault {

override val run = Server.serve(routes).provide(Server.default)
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package example.websocket

import zio._

import zio.http.ChannelEvent.{Read, UserEvent, UserEventTriggered}
import zio.http._

Expand Down

0 comments on commit b99bd48

Please sign in to comment.