connect method

ShiSockListener connect(
  1. String address,
  2. int port
)

Connect will be used to connect to the server. It returns a ShiSockListener object. It should be the first function to be called while creating the client.

Implementation

ShiSockListener connect(String address, int port) {
  ShiSockListener sock = ShiSockListener(address, port);
  return sock;
}