This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<button @click="testMe()">Click Me</button> | |
</div> | |
</template> | |
<script> | |
import kuzzle from '@/kuzzle' | |
export default { | |
name: 'Test', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
fs = require('fs'), | |
mkdirp = require('mkdirp'), | |
{ | |
Kuzzle, | |
WebSocket | |
} = require('kuzzle-sdk'); | |
const kuzzle = new Kuzzle( | |
new WebSocket('localhost', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
S3 = require('kuzzle-plugin-s3'), | |
Cloudinary = require('kuzzle-plugin-cloudinary'), | |
AssetController = require('./assetController'), | |
securities = require('./securities.json'), | |
{ Backend } = require('kuzzle'); | |
const mappings = { | |
'nyc-open-data': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "./doxbee-sequential/promises-native-async-await.js ./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 260 44.71 | |
promises-native-async-await 322 68.64 | |
promises-ecmascript6-native.js 332 73.80 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 10.16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo "./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 227 45.75 | |
promises-ecmascript6-native 945 145.09 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 6.17.1 | |
V8 5.1.281.111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "./doxbee-sequential/promises-native-async-await.js ./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 260 44.71 | |
promises-native-async-await 322 68.64 | |
promises-ecmascript6-native.js 332 73.80 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 10.16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "./doxbee-sequential/promises-native-async-await.js ./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 279 49.20 | |
promises-native-async-await 280 53.22 | |
promises-ecmascript6-native.js 318 65.82 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 12.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const filters = { | |
equals: { containerId: 'liia-1209' } | |
}; | |
await kuzzle.realtime.subscribe('containers', 'positions', filters, notification => { | |
// Only notifications about the 'liia-1209' container | |
}); |