Establish a Client Connection
Our goal in this section is to write client code that can invoke the join/3 function we now have on the server. There are a few steps we’ll need to take to make that happen.
We’ll need to define a client socket and use it to establish a connection to the socket on the server. Then we’ll need to define a new channel object on the client, and use it to join the channel on the server.