       @currentId = id
     @packetQueue.push packet
 
+  # networking error and success callbacks
   onOpen = (event) ->
     console.log 'Socket connection ready!'
     console.log event

    }
    return _mapping

  addToQueue = (packet) =>
    return if not Simulation.isInExecutionMode


    throw "#{name} in packet are not an array" unless Array.isArray arr
    throw "#{name} is empty" if arr.length <= 0

  # simulate the operations part of each packet
  simulateOperation = (packet) =>
    operations = packet.operations
    validateArray "operations", operations
