Skip to content

Commit

Permalink
remove websocket trap
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 26, 2012
1 parent 966f00c commit 6e6ee59
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion app/controllers/Round.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ object Round extends LilaController with TheftPrevention with RoundEventPerforme
getInt("version"),
get("sri"),
get("tk"),
get("tr") | "-",
ctx).unsafePerformIO
}

Expand Down
2 changes: 0 additions & 2 deletions app/round/Socket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}

Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/big.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ $.widget("lichess.game", {
options: {
name: "game"
},
params: { tk: "--tkph--", tr: "a"},
params: { tk: "--tkph--" },
events: {
ack: function() {
clearTimeout(self.socketAckTimeout);
Expand Down

0 comments on commit 6e6ee59

Please sign in to comment.