Skip to content

Commit

Permalink
only ! strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 6, 2024
1 parent b607dcc commit 149b832
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/Ld56C2Controller.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object AnswerMessage {

sealed trait HosterMessage
final case class HostingMessage(playerCount: Int) extends HosterMessage
final case class HostAcceptsJoinMessage(id: UUID, peerId: Int) extends HosterMessage
final case class HostAcceptsJoinMessage(id: UUID, peerId: Int) extends HosterMessage
final case class AnsweringMessage(destination: UUID, answer: String) extends HosterMessage


Expand Down Expand Up @@ -119,9 +119,9 @@ class HostHandler(out: ActorRef,
joiner ! Json.toJson(JoinAcceptMessage(myId, peerId)).toString
}
case candidate @ IceCandidateMessage(_, dest, _, _, _) =>
joiners.get(dest) ! Json.toJson(candidate)
joiners.get(dest) ! Json.toJson(candidate).toString
case AnsweringMessage(dest, answer) =>
joiners.get(dest) ! Json.toJson(AnswerMessage(answer))
joiners.get(dest) ! Json.toJson(AnswerMessage(answer)).toString
catch
case e: Exception =>
logger.error("Kaputt", e)
Expand Down Expand Up @@ -167,9 +167,9 @@ class JoinHandler(out: ActorRef,
logger.warn("No host available!")
}
case OfferMessage(dest, offer) =>
hosters.get(dest) ! Json.toJson(OfferingMessage(myId, offer))
hosters.get(dest) ! Json.toJson(OfferingMessage(myId, offer)).toString
case candidate @ IceCandidateMessage(_, dest, _, _, _) =>
hosters.get(dest) ! Json.toJson(candidate)
hosters.get(dest) ! Json.toJson(candidate).toString
catch
case e: Exception =>
logger.error("Kaputt", e)
Expand Down

0 comments on commit 149b832

Please sign in to comment.