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

Method _error

lib/socket.ts:786–788  ·  view source on GitHub ↗

* Produces an `error` packet. * * @param {Object} err - error object * * @private

(err)

Source from the content-addressed store, hash-verified

784 * @private
785 */
786 _error(err): void {
787 this.packet({ type: PacketType.CONNECT_ERROR, data: err });
788 }
789
790 /**
791 * Disconnects this client.

Callers 1

_addMethod · 0.80

Calls 1

packetMethod · 0.95

Tested by

no test coverage detected