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
One can run multiple instances of the client binary.
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 messages and the clients to receive them.