If a device is already connected to the server when the server.connect() call is made, the callback will not be executed. The Connect() function in this example will ALWAYS execute the callback. If the device is already connected, it will treat it as though it just connected.