Skip to content

Instantly share code, notes, and snippets.

View seahyc's full-sized avatar
🎯
Focusing

Seah Ying Cong seahyc

🎯
Focusing
View GitHub Profile
@vincent99
vincent99 / gist:491afed2306ba448dd89
Last active August 14, 2019 01:16
Simple example of subscribing to Rancher change events
/*
Setup:
npm install ws
Usage:
Create an API key in Rancher and start up with:
node socket.js address.of.rancher:8080 access_key secret_key project_id
*/
var WebSocket = require('ws');