Basic chat server written in lua