layar-client
Tiny wrapper around websocket for easily connecting to layar server
Installation
$ npm install layar-client --save
Usage
var lc = ;var client = // create a multiple sectionvar configSection = ;var releaseSection = ; // start a sectionvar currentHost = 'web01';var info = username: 'semmatabei' commitHash: '1fbb8fe' ;releaseSectionstartcurrentHost info; // end a section// default status is 'completed'releaseSection; // or specify custom statusreleaseSection; // and add additional inforeleaseSection; // send logvar logMessage = 'switching web01 traffic';releaseSection; // abort section// internally .abort() uses .end() with 'error' statusvar errorMessage = 'failed to switch web01 traffic';releaseSection;