Learn R Programming

shinylight (version 1.1.2)

getAddress: Obtains the address that the server is listening on

Description

Obtains the address that the server is listening on

Usage

getAddress(server)

Value

The HTTP address as protocol://address:port

Arguments

server

The server (returned by slServer or slRunRServer)

Examples

Run this code
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")

Run the code above in your browser using DataLab