Skip to content

Instantly share code, notes, and snippets.

@Zarkonnen
Created March 4, 2014 09:39
Show Gist options
  • Save Zarkonnen/9343252 to your computer and use it in GitHub Desktop.
Save Zarkonnen/9343252 to your computer and use it in GitHub Desktop.
The JS object that would be attached to the document of select pages to allow communication with Sauce Connect.
{
/**
* Set any of the following settings by passing in a settings object.
*
* If the user has not previously approved setting settings for this account name and access key,
* they will be prompted to.
*
* The following settings keys are available:
* accountname
* accesskey
*
* tunnelidentifier
* seport
* sharedtunnel
* resturl
*
* nosslbumpdomains
* directdomains
* fastfailregexps
*
* proxyhost
* proxyport
* proxyuser
* proxypassword
*/
setSettings: function(accountname, accesskey, settings) {},
/**
* Start Sauce connect. Requires user approval the first time for a given account name and key.
*/
startConnect: function(accountname, accesskey) {},
/**
* Stop sauce connect.
*/
stopConnect: function() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment