Skip to content
New websocket server
Scala Shell
Branch: master
Clone or download
ornicar Merge remote-tracking branch 'play/play'
* play/play:
  Revert "disable lobby-in connect/sris batching"
  lila no longer sends disconnect/sri
  support for tell/lobby/active
  /socket BC
  don't eject API sockets
  disable lobby-in connect/sris batching
  default http.port
  fix conf
  fix disconnect/sris
Latest commit fd8af31 Sep 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project autoformat Sep 14, 2019
src/main Merge remote-tracking branch 'play/play' Sep 15, 2019
.gitignore ping Aug 27, 2019
LICENSE add license Aug 31, 2019
README.md conf and doc Sep 14, 2019
build.sbt autoformat Sep 14, 2019
deploy.sh fix deploy Sep 15, 2019

README.md

Handle incoming websocket traffic for lichess.org.

lila <-> redis <-> lila-ws <-> websocket <-> client

Start:

sbt

Run server and reload on file change:

~reStart

Start with custom config file:

sbt -Dconfig.file=/path/to/my.conf

Custom config file example:

include "application"
bind.host = "localhost"
bind.port = 9664
mongo.uri = "mongodb://localhost:27017/lichess"
redis.uri = "redis://127.0.0.1"

systemd service file example:

[Unit]
Description=lila-ws
After=network.target

[Service]
Environment="JAVA_OPTS=-Xms128m -Xmx512m"
ExecStart=/home/lila-ws/bin/lila-ws -Dbind.port=9664
WorkingDirectory=/home/lila-ws
StandardError=null
PIDFile=/home/lila-ws/RUNNING_PID

[Install]
WantedBy=multi-user.target
You can’t perform that action at this time.