lib/dreamscreen/client.js
function Client() {
    EventEmitter.call(this);

    this.debug = true;  //false
    this.socket = dgram.createSocket('udp4');
    this.isSocketBound = false;
    this.devices = {};
    this.port = constants.DREAMSCREEN_PORT;
    this.discoveryTimer = null;
    this.messageHandlers = [];
    this.messageHandlerTimeout = 5000; // 45000 45 sec
    this.broadcastIp = constants.DEFAULT_BROADCAST_IP;
}
function Client() {
    EventEmitter.call(this);

    this.debug = true;  //false
    this.socket = dgram.createSocket('udp4');
    this.isSocketBound = false;
    this.devices = {};
    this.port = constants.DREAMSCREEN_PORT;
    this.discoveryTimer = null;
    this.messageHandlers = [];
    this.messageHandlerTimeout = 5000; // 45000 45 sec
    this.broadcastIp = constants.DEFAULT_BROADCAST_IP;
}
function Client ( ) { EventEmitter . call ( this ) ; this . debug = true ; //false this . socket = dgram . createSocket ( 'udp4' ) ; this . isSocketBound = false ; this . devices = { } ; this . port = constants . DREAMSCREEN_PORT ; this . discoveryTimer = null ; this . messageHandlers = [ ] ; this . messageHandlerTimeout = 5000 ; // 45000 45 sec this . broadcastIp = constants . DEFAULT_BROADCAST_IP ; }
Creates a dreamscreen client
@extends EventEmitter
Creates a dreamscreen client