Initializes the client. Stream - A stream from the network client object. Note that the stream should not be connected before this method. Ip - Server ip address. Port - Server port. ClientId - The client id. Note that the string must be a string literal or a process global string. MessageArrivedSub - The sub that will handle the MessageArrived event. DisconnectedSub - The sub that will handle the Disconnected event.