Description Active bindings Methods
This is a high level, user facing interface class that allows for the creation of a livecode server sharing a specific file. The interface also provides additional tools for sending messages.
urlThe current url of the server.
pathThe path of the file being served.
new()Creates a new livecode server
lc_server_iface$new( file, ip, port, interval = 2, bitly = FALSE, auto_save = TRUE, open_browser = TRUE )
filePath to file to broadcast.
ipip of the server, defaults to the top result of 'network_interfaces'.
portport of the server, defaults to a random value.
intervalpage update interval in seconds.
bitlyshould a bitly bit link be created for the server.
auto_saveshould the broadcast file be auto saved update tic.
open_browsershould a browser session be opened.
open()Open server in browser
lc_server_iface$open()
print()Class print method
lc_server_iface$print()
send_msg()Send a noty message to all connected users on the next update tic.
lc_server_iface$send_msg( text, type = "info", theme = "bootstrap-v4", layout = "topRight", ..., parse_md = TRUE )
texttext of the message.
typemessage type ('alert', 'success', 'warning', 'error', 'info').
thememessage theme (See [here](https://ned.im/noty/#/themes) for options)
layoutmessage location.
...additional noty arguments.
parse_mdshould message text be processed as markdown before sending.
is_running()Determine if the server is running.
lc_server_iface$is_running()
Returns 'TRUE' if the server is running.
start()Start the server
lc_server_iface$start()
stop()Stop the server
lc_server_iface$stop(warn = FALSE)
warnShould the users be sent a warning that the server is shutting down.
restart()Restart the server
lc_server_iface$restart()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.