getAddress {shinylight}R Documentation

Obtains the address that the server is listening on

Description

Obtains the address that the server is listening on

Usage

getAddress(server)

Arguments

server

The server (returned by slServer or slRunRServer)

Value

The HTTP address as protocol://address:port

Examples

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")

[Package shinylight version 1.2 Index]