MCPcopy Index your code
hub / github.com/socketio/socket.io / Encoder

Function Encoder

client-dist/socket.io.js:2632–2635  ·  view source on GitHub ↗

* Encoder constructor * * @param {function} replacer - custom replacer to pass down to JSON.parse

(replacer)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

_classCallCheckFunction · 0.85

Tested by

no test coverage detected