我已经阅读了《 VMware HTML Console SDK编程指南》以及该指南之后的代码,然后遇到了一个问题:我无法在Web浏览器上看到我的控制台。
该指南位于:https://www.vmware.com/support/developer/html-console/html-console-sdk-200-programmer-guide.pdf
这是我的代码:
<script>
var url = "wss://my_ip/ticket/my_ticket";
var wmks = WMKS.createWMKS("wmksContainer",{})
.register(WMKS.CONST.Events.CONNECTION_STATE_CHANGE, function(event,data){
if(data.state == WMKS.CONST.ConnectionState.CONNECTED){
console.log("connection state change : connected");}
});
wmks.connect(url);
</script>
<div id="wmksContainer" style="position:absolute; width:100%; height:100%"></div>