Added wrapper
This commit is contained in:
13
API_js/demo.html
Normal file
13
API_js/demo.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!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>
|
Reference in New Issue
Block a user