Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/server/lib/AphlictListener.js
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | isSubscribedToAny: function(phids) { | ||||
return intersection.length > 0; | return intersection.length > 0; | ||||
}, | }, | ||||
getSocket: function() { | getSocket: function() { | ||||
return this._socket; | return this._socket; | ||||
}, | }, | ||||
getDescription: function() { | getDescription: function() { | ||||
return 'Listener/' + this.getID() + this._path; | return 'Listener/' + this.getID() + '/' + this._path; | ||||
}, | }, | ||||
writeMessage: function(message) { | writeMessage: function(message) { | ||||
this._socket.send(JSON.stringify(message)); | this._socket.send(JSON.stringify(message)); | ||||
}, | }, | ||||
}, | }, | ||||
}); | }); |