Skip to content

Instantly share code, notes, and snippets.

James Peterson linuxjet

  • Fargo, ND
Block or report user

Report or block linuxjet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@linuxjet
linuxjet / Websocket Gist
Created Jul 13, 2017
Testing Websockets
View Websocket Gist
<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', {
You can’t perform that action at this time.