13 lines
483 B
HTML
13 lines
483 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="WebConsoleAPI.js"></script>
|
|
<script src="WebConsoleConnector.js"></script>
|
|
</head>
|
|
<body>
|
|
<h1>API demo</h1>
|
|
<p>Open your console (F12) and type: var webconsoleapi = new WebConsoleAPI("ws://localhost:8080");</p>
|
|
<p>Replace ws:// with wss:// if your server have SSL enabled, localhost with your server IP and 8080 with your port.</p>
|
|
<p>Then call login(pwd) to login, sendConsoleCmd(cmd) to execute a command, etc...</p>
|
|
</body>
|
|
</html> |