mmo-import-socket
1 symbol · generated 5 Oct 2026
mmo-import-socket
mmo-import-socket.jhs:1ImportSocket element
- Extends
- CustomShadowElement
Index
| url | the url of the import socket | |
| config | the configuration to use | |
| keys | the keys to import in the configuration | |
| url accessor | Get the URL of the import socket | |
| config accessor | Get the name of the configuration to use | |
| keys accessor | Get the keys to import in the configuration | |
| constructor() | ||
| init() | ||
| log(msg) | Log a message | |
| run() | Run the import | |
| stop() | Stop the import | |
| isConnected() | Check if the socket is connected | |
| isClosed() | Check if the socket is closed | |
| send(cmd) | Send a command to the socket | |
| receive(data) | Receive data from the socket | |
| close() | Close the socket | |
| toggleConnection() | Toggle the connection | |
| update() | Update the status of the connection | |
| downloadLogs() | Download the logs | |
| clearLogs() | Clear the logs |
Attributes3
url
mmo-import-socket.jhsthe url of the import socket
url
config
mmo-import-socket.jhsthe configuration to use
config
keys
mmo-import-socket.jhsthe keys to import in the configuration
keys
Properties3
url
accessormmo-import-socket.jhs:59Get the URL of the import socket
- Type
string
config
accessormmo-import-socket.jhs:92Get the name of the configuration to use
- Type
string
keys
accessormmo-import-socket.jhs:111Get the keys to import in the configuration
- Type
Array
Methods14
constructor()
mmo-import-socket.jhs:39init()
mmo-import-socket.jhs:45log(msg)
mmo-import-socket.jhs:130Log a message
| msg | string | - The message to log |
run()
mmo-import-socket.jhs:139Run the import
stop()
mmo-import-socket.jhs:146Stop the import
isConnected()
mmo-import-socket.jhs:157Check if the socket is connected
| returns | boolean | True if the socket is connected, false otherwise |
isClosed()
mmo-import-socket.jhs:165Check if the socket is closed
| returns | boolean | True if the socket is closed, false otherwise |
send(cmd)
mmo-import-socket.jhs:174Send a command to the socket
| cmd | string | - The command to send |
| returns | boolean | True if the command was sent, false otherwise |
receive(data)
mmo-import-socket.jhs:192Receive data from the socket
| data | string | - The data to receive |
close()
mmo-import-socket.jhs:219Close the socket
toggleConnection()
mmo-import-socket.jhs:230Toggle the connection
update()
mmo-import-socket.jhs:238Update the status of the connection
downloadLogs()
mmo-import-socket.jhs:270Download the logs
clearLogs()
mmo-import-socket.jhs:280Clear the logs