@sockets.route("<STR_LIT>")<EOL>def chat(ws):
lag_tolerance_secs = float(request.args.get("<STR_LIT>", <NUM_LIT:0.1>))<EOL>client = Client(ws, lag_tolerance_secs=lag_tolerance_secs)<EOL>client.subscribe(request.args.get("<STR_LIT>"))<EOL>gevent.spawn(client.heartbeat)<EOL>client.publish()<EOL>
Relay chat messages to and from clients.