Resumes the connection to the SUP server.
Companion function to hwc.disconnectFromServer. This function should only be called after the connection to the SUP server has been suspened with a call to hwc.disconnectFromServer.
<static> connectToServer( [onNotification] )
Name | Type | Argument | Description |
onNotification | anonymous.LogListener | (optional) | A log listener callback function.If you are interested in the connection state it is recommended that you call hwc.addConnectionListener before calling hwc.connectToServer. |
hwc.connectToServer();
// Add a log listener while calling hwc.connectToServer. var logListener = function( time, event, message ) { alert(message); } hwc.connectToServer( logListener );