This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
//var WebSocket = require('ws'); | |
var username = 'admin'; //replace with admin username | |
var password = 'my password'; //replace with admin password | |
var host = 'isy.linuxjet.com:2653'; //replace with your ISY IP | |
var auth = username + ':' + password; | |
var url = 'wss://' + auth + '@' + host + '/rest/subscribe'; | |
var ws = new WebSocket(url, 'ISYSUB', { |
