MCPcopy
hub / github.com/socketio/socket.io / mixin

Function mixin

packages/socket.io-component-emitter/lib/esm/index.js:19–24  ·  view source on GitHub ↗

* Mixin the emitter properties. * * @param {Object} obj * @return {Object} * @api private

(obj)

Source from the content-addressed store, hash-verified

17 */
18
19function mixin(obj) {
20 for (var key in Emitter.prototype) {
21 obj[key] = Emitter.prototype[key];
22 }
23 return obj;
24}
25
26/**
27 * Listen on the given `event` with `fn`.

Callers 1

EmitterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected