Skip to content
Snippets Groups Projects
Commit 1e44fad4 authored by Moritz Langenstein's avatar Moritz Langenstein
Browse files

(ml5717) Allocate uuidv4 IDs to connecting clients

parent 04ea4e50
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,11 @@ function signalbuddy(server, config) {
var _arguments = arguments;
var io = _socket2.default.listen(server);
io.engine.generateId = function () /*req, callback*/{
return (0, _v2.default)();
};
io.on('connection', function (client) {
client.resources = {
screen: false,
......
......@@ -6,6 +6,11 @@ import normalice from 'normalice';
function signalbuddy(server, config) {
const io = socketIO.listen(server);
io.engine.generateId = function (/*req, callback*/) {
return uuidv4();
};
io.on('connection', (client) => {
client.resources = {
screen: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment