getAddress: Obtains the address that the server is listening on

View source: R/shinylight.R

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

shinylight documentation built on May 29, 2024, 12:04 p.m.