FOM Reference > Application > System Objects > fDebugSocket interface
  
fDebugSocket interface
This object represents a debug socket connection.
isOpen attribute
If true, this debug socket is open and available to write to.
isOpen
Access
read-only
Returns
boolean
port attribute
The port number the debug socket is connected to.
port
Access
read-only
Returns
int
sendApplicationAlerts attribute
If true, application.alert() messages will be sent to the debugger.
sendApplicationAlerts
Access
read-write
Returns
boolean
sendStatusMessages attribute
If true, status bar messages will be sent to the debugger.
sendStatusMessages
Access
read-write
Returns
boolean
token attribute
The debug socket's websocket is available at /id/<token>.
token
Access
read-only
Returns
String
close method
Close the debug socket.
close
Parameters
None
Returns
void. None.
open method
Opens the debug socket on the specified port. If the debug socket is already open, it will be closed first before the new debug socket is opened.
openport
Parameters
intport
The port to open the debug socket on.
Returns
void. None.
sendMessage method
Sends a message to the debug socket, if it is opened.
sendMessagetargetmessagesource
Parameters
Stringtarget
The target of the message.
Stringmessage
The message to send.
Stringsource
The source of the message.
Returns
void. None.