lila-ws: remove out.room/start
parent
4276bf9fa2
commit
c7469ae89e
|
@ -45,7 +45,6 @@ object RoomSocket {
|
|||
send(Protocol.Out.stop(roomId))
|
||||
bus.unsubscribe(this, chatClassifier)
|
||||
}
|
||||
send(Protocol.Out.start(roomId))
|
||||
bus.subscribe(this, chatClassifier)
|
||||
}
|
||||
|
||||
|
@ -121,8 +120,6 @@ object RoomSocket {
|
|||
s"tell/room/user $roomId $userId ${Json stringify payload}"
|
||||
def tellRoomUsers(roomId: RoomId, userIds: Iterable[User.ID], payload: JsObject) =
|
||||
s"tell/room/users $roomId ${P.Out.commas(userIds)} ${Json stringify payload}"
|
||||
def start(roomId: RoomId) =
|
||||
s"room/start $roomId"
|
||||
def stop(roomId: RoomId) =
|
||||
s"room/stop $roomId"
|
||||
}
|
||||
|
|
|
@ -142,9 +142,7 @@ private[round] final class RoundRemoteDuct(
|
|||
gameSpeed = game.speed.some
|
||||
whitePlayer.goneWeight = whiteGoneWeight
|
||||
blackPlayer.goneWeight = blackGoneWeight
|
||||
// only run the following if the game actually exists, and not on duct start
|
||||
buscriptions.chat
|
||||
socketSend(RP.Out.start(roomId))
|
||||
}
|
||||
|
||||
case lila.chat.actorApi.ChatLine(chatId, line) => fuccess {
|
||||
|
|
Loading…
Reference in New Issue