Solution 4: Working with TCP/IP and WebSocket

Let’s solve the challenge set in the previous lesson.

We'll cover the following

Solution

In this lesson, we will write a UNIX domain socket server (socketServer.go) that generates random numbers and socketClient.go code.

To run the client side for the socketServer.go server, open a new terminal window and copy and paste the below commands into it:

Get hands-on with 1200+ tech skills courses.