socket added but not wired up with front ent
This commit is contained in:
parent
1ad21a667c
commit
0174fd5226
10
lib/api/socket.js
Normal file
10
lib/api/socket.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
const io = require('socket.io')
|
||||||
|
|
||||||
|
module.exports = function addressrouter(server) {
|
||||||
|
io.(server);
|
||||||
|
|
||||||
|
io.on('connection', (socket) => {
|
||||||
|
console.log(socket);
|
||||||
|
})
|
||||||
|
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user