In most cases, you should do this the same way you first connected to it. Just remember to close the connection before trying to reconnect.
You may need a little more information, because maybe your problem is elsewhere.
You call the simple Get command, and then close the connection and try to connect again. Or you try "BeginReceived" (asynchronous connection), then you will need to handle ObjectDisposed Exception when disconnected and after that reconnect
source share