deepstream OO Class definition to save recordname

Mar 27, 04:37 AM

from wolfram:

class User{ constructor( recordName ) { this.record = ds.record.getRecord( recordName ); this.record.subscribe( this._processUpdate.bind( this ) ); }

_processUpdate( data ) { if( this.record.name === ‘…’) { // do stuff } } }
Mark Edwards

,

---

Commenting is closed for this article.

---