fix reading empty rooms from lila-ws

pull/8323/head
Thibault Duplessis 2021-03-05 18:10:18 +01:00
parent 27eae40e78
commit aaa0dddee2
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ object RoomSocket {
val reader: P.In.Reader = raw =>
raw.path match {
case "room/alives" => KeepAlives(raw.args split "," map RoomId.apply).some
case "room/alives" => KeepAlives(P.In.commas(raw.args) map RoomId.apply).some
case "chat/say" =>
raw.get(3) { case Array(roomId, userId, msg) =>
ChatSay(RoomId(roomId), userId, msg).some