Lab 27: Chat in a Universe
Your goal is to create a working chat client in a universe setting.
You can either modify your working chat client, or edit the provided code for chat clients.
The server IP to register is [IP] and port is [PORT]. Refresh this page if you are having trouble connecting.
Refer to the universe documentation here for details for connecting to the server.
Ex 1: Implement receive-message to be used in the chat client’s . The server sends the following types of messages:
(list ’enter Symbol), when a new client connects;
(list ’exit Symbol), when a client exits;
(list ’message Symbol String), when a client sends a message;
(list ’error String), when you send an invalid package to the server.
Your client will need to display connections and disconnections as messages from the server, as well as add any messages from clients to the local chat history.
Ex 2: Implement send-message. The server expects a message to be sent in the form above: (list ’message Symbol String). Your client should clear its local content in order to be ready to enter and send a new message.