14 lines
404 B
JavaScript
14 lines
404 B
JavaScript
|
module.exports = {
|
||
|
app: ({ app, config, themeConfig }) => {
|
||
|
app.get("/moduleexample", (req, res) => {
|
||
|
res.send("ModuleExample: Hello World!")
|
||
|
})
|
||
|
},
|
||
|
server: ({ io, server, config, themeConfig }) => {
|
||
|
const test = io.of("/moduleexample")
|
||
|
test.on("connection", () => {
|
||
|
console.log("ModuleExample socket.io connected.")
|
||
|
})
|
||
|
},
|
||
|
}
|