* @param {!JsonObject} data * @private
(data)
| 130 | * @private |
| 131 | */ |
| 132 | onMessage_(data) { |
| 133 | const id = data['id']; |
| 134 | if (isFiniteNumber(id) && this.callbacks_[id]) { |
| 135 | this.handleResponse_(id, data['args']); |
| 136 | return; |
| 137 | } |
| 138 | |
| 139 | if (data['event'] == 'method') { |
| 140 | this.maybeExecute_(data['method']); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * @param {number} id |
no test coverage detected