UNPKG

p3x-redis-ui-server

Version:

🏍️ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface

21 lines (14 loc) 429 B
const socketIo = require('socket.io') const socketIoService = function () { const self = this; self.boot = async (options) => { const {koaService} = options const socketio = require('socket.io')(koaService.server, { secure: true, path: '/socket.io', }); require('./socket')(socketio); this.socketio = socketio } } module.exports = socketIoService