ws for browser¶
This module is loaded instead of jstp.ws when using the package in
browser.
Object: jstp.ws¶
jstp.ws.connect(app, client, url, callback)¶
app<string>|<Object>Application to connect to as'name'or'name@version'or{ name, version }, where version must be a valid semver range.client<Client>|<null>Optional, when omitted, an object with the default values forapplication,connectPolicyandreconnectoris used.url<string>callback<Function>error:<Error>connection:<Connection>
jstp.ws.connectAndInspect(app, client, interfaces, url, callback)¶
app<string>|<Object>Application to connect to as'name'or'name@version'or{ name, version }, where version must be a valid semver range.client<Client>|<null>Optional, when omitted, an object with the default values forapplication,connectPolicyandreconnectoris used.interfaces<string[]>Interface names to perform inspect on.url<string>callback<Function>error:<Error>connection:<Connection>proxies<Object>[interfaceName]<RemoteProxy>
For more details see jstp.net.connectAndInspect().
jstp.ws.reconnect(connection, url, callback)¶
connection:<Connection>url<string>callback<Function>error:<Error>connection:<Connection>
For more details see jstp.net.reconnect().