13 lines
510 B
JavaScript
13 lines
510 B
JavaScript
|
|
// import Fingerprint2 from 'fingerprintjs2';
|
|
//
|
|
// export default ({ store }) => {
|
|
// if (process.client){
|
|
// const fingerprint = Fingerprint2.get((components) => {
|
|
// const values = components.map((component)=>component.value)
|
|
// const murmur = Fingerprint2.x64hash128(values.join(''),31)
|
|
// const websocketUrl = 'ws://localhost:8099/ws/asset/'+murmur
|
|
// store.dispatch('modules/websocket/websocket_init', websocketUrl)
|
|
// })
|
|
// }
|
|
// }
|