1.0.1 • Published 2 years ago
@wyte/socket.io v1.0.1
socket.io
socket.io middleware for Wyte
Install
npm i @wyte/socket.io
Usage
After creating your app, simply add:
app.Stack.use(require('@wyte/socket.io')).ready(io => {
// Now you can use socket.io
io.on('connection', socket => {
console.log('Socket connected')
})
})