remove websocket trap

This commit is contained in:
Thibault Duplessis 2012-10-26 10:23:48 +02:00
parent 966f00cce0
commit 6e6ee59d78
3 changed files with 1 additions and 4 deletions

View file

@ -43,7 +43,6 @@ object Round extends LilaController with TheftPrevention with RoundEventPerforme
getInt("version"),
get("sri"),
get("tk"),
get("tr") | "-",
ctx).unsafePerformIO
}

View file

@ -120,9 +120,7 @@ final class Socket(
version: Option[Int],
uid: Option[String],
token: Option[String],
trap: String,
ctx: Context): IO[SocketPromise] = {
if (trap != "a") println("[websocket] trap %s %s".format(fullId, ctx.toString))
getPlayerPov(fullId) map { join(_, true, version, uid, token, ctx) }
}

View file

@ -571,7 +571,7 @@ $.widget("lichess.game", {
options: {
name: "game"
},
params: { tk: "--tkph--", tr: "a"},
params: { tk: "--tkph--" },
events: {
ack: function() {
clearTimeout(self.socketAckTimeout);