src/circuit/utils.js
function writeResponse (streamHandler, status, cb) {
    cb = cb || (() => {})
    streamHandler.write(proto.CircuitRelay.encode({
      type: proto.CircuitRelay.Type.STATUS,
      code: status
    }))
    return cb()
  }
function writeResponse (streamHandler, status, cb) {
    cb = cb || (() => {})
    streamHandler.write(proto.CircuitRelay.encode({
      type: proto.CircuitRelay.Type.STATUS,
      code: status
    }))
    return cb()
  }
function writeResponse ( streamHandler , status , cb ) { cb = cb || ( ( ) => { } ) streamHandler . write ( proto . CircuitRelay . encode ( { type : proto . CircuitRelay . Type . STATUS , code : status } ) ) return cb ( ) }
Write a response

@param {StreamHandler} streamHandler
@param {CircuitRelay.Status} status
@param {Function} cb
@returns {*}
Write a response