Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// import opq
const Queue = require('opq');
// below we create a new client to the queue,
// and create the queue on the filesystem if it does
// not exist. the port is used by Live-Mutex;
// fp is our queue filepath
const q = new Queue({
fp: path.resolve(process.env.HOME + '/testing.txt')
port: 8888
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.