src/VogueClient.js
function VogueClient(clientSocket, watcher) {
  this.socket = clientSocket;
  this.watcher = watcher;
  this.watchedFiles = {};
  clientSocket.on('watch', this.handleMessage.bind(this));
  clientSocket.on('disconnect', this.disconnect.bind(this));
}
function VogueClient(clientSocket, watcher) {
  this.socket = clientSocket;
  this.watcher = watcher;
  this.watchedFiles = {};
  clientSocket.on('watch', this.handleMessage.bind(this));
  clientSocket.on('disconnect', this.disconnect.bind(this));
}
function VogueClient ( clientSocket , watcher ) { this . socket = clientSocket ; this . watcher = watcher ; this . watchedFiles = { } ; clientSocket . on ( 'watch' , this . handleMessage . bind ( this ) ) ; clientSocket . on ( 'disconnect' , this . disconnect . bind ( this ) ) ; }
Encapsulates a web socket client connection from a web browser.
Encapsulates a web socket client connection from a web browser .