port,BrowserViz-method | R Documentation |
Get the port number
## S4 method for signature 'BrowserViz'
port(obj)
obj |
An object of class BrowserViz |
the port number use in the websocket connection, a numeric value.
library(BrowserViz)
browserVizBrowserFile <- system.file(package="BrowserViz", "browserCode", "dist", "bvDemoApp.html")
if(BrowserViz::webBrowserAvailableForTesting()){
bvApp <- BrowserViz(browserFile=browserVizBrowserFile, quiet=TRUE)
port(bvApp)
closeWebSocket(bvApp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.