p3x-redis-ui-server
Version:
🏍️ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface
22 lines (15 loc) • 489 B
JavaScript
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',
maxHttpBufferSize: 256 * 1024 * 1024, // 256 MB
});
require('./socket')(socketio);
this.socketio = socketio
}
}
module.exports = socketIoService