Network
These global variables provide information about the network status, connections, and online functionality of the OSL environment.
Connection Variables
network.connected
Boolean
Whether the device is connected to a network
network.server
String
URL of the current server the application is connected to
network.username
String
Network username used for the current connection
network.validator
String
Validation string for secure network operations
Network Statistics
network.upload
Number
Current upload speed in bytes
network.download
Number
Current download speed in bytes
Online Users
network.online_users
Array
Array of usernames currently online on the server
RoTurLink
roturlink.enabled
Boolean
Whether RoTurLink functionality is enabled
roturlink.ws
Object
WebSocket connection object for RoTurLink
roturlink.send
Function
Function to send data through RoTurLink
Examples
Last updated
Was this helpful?