This example demonstrates a simple client-server interaction using WebSocket communication.
The setup includes a client folder and a server folder, each containing a respective binary.
The server binary starts a WebSocket server and sends a message, while the client binary
starts a WebSocket client and waits to receive a message.
Usage
Open a terminal or command prompt.
Navigate to the client folder.
Built and run the client
go build && ./client
Open another terminal or command prompt.
Navigate to the server folder.
Build and run the server
go build && ./server
Wait for the server to successfully send the message and the client to receive it.
Once the message has been sent and received successfully, the processes will end.