private function craft_new_msg($type, $jobId, $client, $data)
    {
        // Add client info to data
        $data->{'client'} = $client;
        // Build msg to send out
        $msg = array(
            'time'   => microtime(true),
            'type'   => $type,
            'jobId'  => $jobId,
            'data'   => $data
        );

        return $msg;
    }