write method

Socket write(
  1. dynamic msg,
  2. dynamic options, [
  3. EventHandler? fn
])

Sends a message.

@param {String} message. @param {Function} callback function. @param {Object} options. @return {Socket} for chaining. @api public

Implementation

Socket write(msg, options, [EventHandler? fn]) => send(msg, options, fn);