src/record/record-handler.js
function handleForceWriteAcknowledgement (
  socketWrapper, message, cacheResponse, storageResponse, error
) {
  if (storageResponse && cacheResponse) {
    socketWrapper.sendMessage(RECORD, C.ACTIONS.WRITE_ACKNOWLEDGEMENT, [
      message.data[0],
      [message.data[1]],
      messageBuilder.typed(error)
    ], true)
  }
}
function handleForceWriteAcknowledgement (
  socketWrapper, message, cacheResponse, storageResponse, error
) {
  if (storageResponse && cacheResponse) {
    socketWrapper.sendMessage(RECORD, C.ACTIONS.WRITE_ACKNOWLEDGEMENT, [
      message.data[0],
      [message.data[1]],
      messageBuilder.typed(error)
    ], true)
  }
}
function handleForceWriteAcknowledgement ( socketWrapper , message , cacheResponse , storageResponse , error ) { if ( storageResponse && cacheResponse ) { socketWrapper . sendMessage ( RECORD , C . ACTIONS . WRITE_ACKNOWLEDGEMENT , [ message . data [ 0 ] , [ message . data [ 1 ] ] , messageBuilder . typed ( error ) ] , true ) } }
Handles write acknowledgements during a force write.

@param  {SocketWrapper} socketWrapper the socket that sent the request
@param  {Object} message the update message
@param  {Boolean} cacheResponse flag indicating whether the cache has been set
@param  {Boolean} storageResponse flag indicating whether the storage layer
has been set
@param  {String} error any errors that occurred during writing to cache
and storage

@private
@returns {void}
Handles write acknowledgements during a force write .