write(socket, task, id, fn) {
        this.session[this.binary ? 'binary' : 'utf8'](task.size, (err, data) => {
            socket.last = Date.now();
            socket.send(data, {});
        });
    }
/**
     * Helper function from writing messages to the socket.
     *
     * @param {WebSocket} socket WebSocket connection we should write to
     * @param {Object} task The given task
     * @param {String} id
     * @param {Function} fn The callback
     * @api private
     */
Helper function from writing messages to the socket.
Helper function from writing messages to the socket .
write(socket, task, id, fn) {
        this.session[this.binary ? 'binary' : 'utf8'](task.size, (err, data) => {
            socket.last = Date.now();
            socket.send(data, {});
        });
    }
write ( socket , task , id , fn ) { this . session [ this . binary ? 'binary' : 'utf8' ] ( task . size , ( err , data ) => { socket . last = Date . now ( ) ; socket . send ( data , { } ) ; } ) ; }
Helper function from writing messages to the socket.
Helper function from writing messages to the socket .