* Send text/binary data to the remote peer. * @param {ArrayBufferView|ArrayBuffer|Buffer|string|Blob} chunk
(chunk)
| 244 | * @param {ArrayBufferView|ArrayBuffer|Buffer|string|Blob} chunk |
| 245 | */ |
| 246 | send (chunk) { |
| 247 | if (this.destroying) return |
| 248 | if (this.destroyed) throw errCode(new Error('cannot send after peer is destroyed'), 'ERR_DESTROYED') |
| 249 | this._channel.send(chunk) |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Add a Transceiver to the connection. |