Communication
Server Communication
Interacting with the server involves connecting to it, sending data, receiving data, and handling errors. Below are the steps and sample code snippets for each of these operations.
Simple command to connect with the server:
<- nc 127.0.0.1 3000
-> WELCOME
-> X Y
<- Commands...