9 lines
204 B
JavaScript
9 lines
204 B
JavaScript
const database = require('./../server/database')
|
|
const wss = require('../server/socket/init')
|
|
|
|
export default function () {
|
|
this.nuxt.hook('listen', (server, { host, port }) => {
|
|
wss(server)
|
|
})
|
|
}
|