code: function onMessage(val) {  // {{{2
  //  console.log('WS ON MESSAGE', val);
  
    try {
      val = JSON.parse(val);
    } catch (err) {
      O.log.error(err);
      this.close();
      return;
    }
  
    this.rx(val);
  }
docs: }}}1 Event Handlers {{{1