In Watchword Chat, a user can chat with other users who choose the same passcode (that is, “watchword”) as they do. The program uses multithread web server to handle HTTP and/or WebSocket requests. The server records the client’s actions (namely, creating/joining existing watchwords, leaving the chat, and sending messages), parses the information in JSON, and sends back to appropriate clients.