Before start you need to clone this repository:
git clone [email protected]:Parviz-Makhkamov/go-socket.git
For start, in the root directory of the cloned repository:
First, start server and create socket:
cd ./server
go run . // stated server with default socket path, default path: "/tmp/echo.sock"
or
go run . -socketAddr= socket path // stated server with special socket path
From client side:
cd ./client
go run . // if server started with default socket path
or
go run . -socketAddr= socket path // if server started with special socket path