* Encoder constructor * * @param {function} replacer - custom replacer to pass down to JSON.parse
(replacer)
| 2630 | * @param {function} replacer - custom replacer to pass down to JSON.parse |
| 2631 | */ |
| 2632 | function Encoder(replacer) { |
| 2633 | _classCallCheck(this, Encoder); |
| 2634 | this.replacer = replacer; |
| 2635 | } |
| 2636 | /** |
| 2637 | * Encode a packet as a single string if non-binary, or as a |
| 2638 | * buffer sequence, depending on packet type. |
nothing calls this directly
no test coverage detected