Skip to content

Latest commit

 

History

History
 
 

serverEvents

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Vite Plugin - socket.io - serverEvents

Description

Function to run when initializing socket.io connection

Default

// serverEvents.js

export default (io, socketEvents) => {
  io.on('connection', socket => socketEvents(io, socket))
}