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.
url
The current url of the server.
path
The 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 )
file
Path to file to broadcast.
ip
ip of the server, defaults to the top result of 'network_interfaces'.
port
port of the server, defaults to a random value.
interval
page update interval in seconds.
bitly
should a bitly bit link be created for the server.
auto_save
should the broadcast file be auto saved update tic.
open_browser
should 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 )
text
text of the message.
type
message type ('alert', 'success', 'warning', 'error', 'info').
theme
message theme (See [here](https://ned.im/noty/#/themes) for options)
layout
message location.
...
additional noty arguments.
parse_md
should 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)
warn
Should 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.