getAddress | R Documentation |
Obtains the address that the server is listening on
getAddress(server)
server |
The server (returned by |
The HTTP address as protocol://address:port
server <- slServer(
port = 50051,
interface = list(
multiply = function(x, y) { x * y }
)
)
address <- getAddress(server)
# ...
slStop(server)
stopifnot(address == "http://127.0.0.1:50051")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.