You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cvm/lib/tag-websocket.js

12 lines
167 B
JavaScript

'use strict';
const uuid = require("uuid");
module.exports = function(socket) {
if (socket.socketId == null) {
socket.socketId = uuid.v4();
}
return socket;
}