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

Method _error

packages/socket.io/lib/socket.ts:693–695  ·  view source on GitHub ↗

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

(err)

Source from the content-addressed store, hash-verified

691 * @private
692 */
693 _error(err): void {
694 this.packet({ type: PacketType.CONNECT_ERROR, data: err });
695 }
696
697 /**
698 * Disconnects this client.

Callers 1

_addMethod · 0.80

Calls 1

packetMethod · 0.95

Tested by

no test coverage detected